Updated on 2025-10-29 GMT+08:00

Updating Resource Information

Function

This API is used to update a resource based on its attribute changes. The update works on only changed columns.

Calling Method

For details, see Calling APIs.

URI

PUT /v1/{project_id}/workspaces/{workspace_id}/sa/resources/{id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID, which is used to specify the project that a resource belongs to. You can query the resources of a project by project ID. You can obtain the project ID from the API or console. Obtaining the Project ID

Constraints

N/A

Range

N/A

Default Value

N/A

workspace_id

Yes

String

Definition

Workspace ID.

Constraints

N/A

Range

N/A

Default Value

N/A

id

Yes

String

Unique ID of the resource.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Language

Yes

String

Definition

Language. Reference value: zh-cn or en-us.

Constraints

N/A

Range

zh-cn: Chinese environment

en-us: English environment

Default Value

N/A

X-Auth-Token

Yes

String

Definition

User token. You can obtain it by calling the IAM API for obtaining a user token. The user token is the value of X-Subject-Token in the response header. Obtaining a User Token

Constraints

N/A

Range

N/A

Default Value

N/A

content-type

Yes

String

Definition

Content type.

  • application/json;charset=UTF-8: common API request type

Constraints

N/A

Range

  • application/json;charset=UTF-8

Default Value

N/A

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

data_object

Yes

ResourceDetail object

Resource details.

Table 4 ResourceDetail

Parameter

Mandatory

Type

Description

id

Yes

String

Resource ID.

name

Yes

String

Resource name.

provider

Yes

String

Resource source. The cloud service name (cloud services) or specific on-premises data center (IDC) name is provided.

type

Yes

String

Resource type, such as ECS, VPC, EVS, IP address, and URL.

checksum

No

String

Resource checksum.

created

No

String

Resource creation time.

provisioning_state

No

String

Resource operation status.

environment

Yes

ResourceEnvironment object

Environment of the resource.

department

No

Department object

Department of the resource.

governance_user

No

GovernanceUser object

Resource governance owner.

level

No

Integer

0: test; 1: general; 2: key resource

properties

Yes

Properties object

Resource attribute details.

Table 5 ResourceEnvironment

Parameter

Mandatory

Type

Description

vendor_type

Yes

String

Environment provider.

domain_id

Yes

String

This field is used for resources on Huawei Cloud only. It specifies the resource owner.

region_id

No

String

This parameter is only used for resources on Huawei Cloud. It specifies the resource ownership. For global services, the value is "global".

project_id

No

String

This parameter is only used for resources on Huawei Cloud. It specifies the resource ownership. For global services, the default value is null.

ep_id

No

String

This parameter is only used for resources on Huawei Cloud. It specifies the ID of the enterprise project to which the resource belongs.

ep_name

No

String

This parameter is only used for resources on Huawei Cloud. It specifies the name of the enterprise project to which the resource belongs.

vendor_name

Yes

String

This field is used for OCA only. It specifies the asset probes or asset provider.

idc_name

Yes

String

This field is used for OCA only. It specifies the on-premises data center name.

idc_id

No

String

This field is used for OCA only. It specifies the on-premises data center ID.

Table 6 Department

Parameter

Mandatory

Type

Description

id

No

String

ID of the department the resource belongs to. If this parameter is not specified, the default value is used.

name

No

String

Department of the resource.

Table 7 GovernanceUser

Parameter

Mandatory

Type

Description

type

No

String

Resource governance owner type.

name

No

String

Name of the resource governance owner. If this parameter is left blank, ignore it. If this parameter does not exist, create it.

Table 8 Properties

Parameter

Mandatory

Type

Description

hwc_ecs

No

HwcEcs object

Huawei Cloud ECS details.

hwc_eip

No

HwcEip object

Huawei Cloud EIP.

hwc_vpc

No

HwcVpc object

Huawei Cloud VPC.

hwc_subnet

No

HwcSubnet object

Huawei Cloud subnet.

hwc_rds

No

HwcRds object

Huawei Cloud RDS.

hwc_domain

No

HwcDomain object

Huawei Cloud domain name.

website

No

Website object

Website.

oca_ip

No

OcaIp object

IP address of a resource outside the cloud.

Table 9 HwcEcs

Parameter

Mandatory

Type

Description

id

Yes

String

ECS ID, in UUID format.

name

Yes

String

ECS name.

protected_status

Yes

String

HSS status. The value can be OPEN or CLOSE.

description

Yes

String

ECS description.

status

Yes

String

ECS status.

Range:

ACTIVE, BUILD, ERROR, HARD_REBOOT, MIGRATING, REBOOT, REBUILD, RESIZE, REVERT_RESIZE, SHUTOFF, VERIFY_RESIZE, and DELETED.

locked

Yes

Boolean

Whether the ECS is locked.

  • true: locked

  • false: not locked

enterprise_project_id

No

String

ID of the enterprise project that the ECS belongs to.

user_id

Yes

String

ID of the account used to create the ECS, in UUID format.

project_id

Yes

String

ID of the project that the ECS belongs to, in UUID format.

host_id

Yes

String

ID of the host where the ECS is deployed.

host_name

Yes

String

Name of the host where the ECS is deployed.

host_status

Yes

String

Status of the host accommodating the ECS.

UP: The service is normal.

UNKNOWN: The status is unknown.

DOWN: The service is abnormal.

MAINTENANCE: The service is in maintenance state.

Null: The ECS does not have host information.

addresses

Yes

Array of HwcEcsAddress objects

Network attribute of the ECS.

security_groups

Yes

Array of HwcEcsSecurityGroup objects

Security groups to which the ECS belongs.

availability_zone

Yes

String

Name of the AZ where the ECS is deployed.

flavor

No

HwcEcsFlavor object

ECS flavor.

volumes_attached

Yes

Array of HwcEcsVolume objects

Disk attached to the ECS.

metadata

Yes

HwcEcsMetadata object

ECS metadata.

updated

Yes

String

The last time the ECS was updated, for example, time when it was started, stopped, or restarted.

Example time format: 2019-05-22T03:30:52Z

created

Yes

String

The time when the ECS was created.

Example time format: 2019-05-22T03:19:19Z

key_name

No

String

Name of the key pair used for the ECS.

scheduler_hints

No

HwcEcsSchedulerHint object

ECS scheduling information.

hypervisor

No

HwcEcsHypervisor object

Virtualization information.

Table 10 HwcEcsAddress

Parameter

Mandatory

Type

Description

version

Yes

String

IP address version.

  • 4: IPv4 addresses

  • 6: IPv6 addresses

addr

Yes

String

IP address.

type

Yes

String

IP address type.

  • fixed: private IP addresses

  • floating: floating IP addresses

mac_addr

Yes

String

MAC address.

port_id

Yes

String

ID of the port corresponding to the IP address.

vpc_id

Yes

String

ID of the VPC that the ECS belongs to.

Table 11 HwcEcsSecurityGroup

Parameter

Mandatory

Type

Description

id

Yes

String

Security group ID.

name

No

String

Security group name or UUID.

Table 12 HwcEcsFlavor

Parameter

Mandatory

Type

Description

id

Yes

String

ECS flavor ID.

name

Yes

String

ECS flavor name.

disk

No

String

System disk size in the ECS flavor. The value 0 indicates that the disk size is not limited.

vcpus

No

String

Number of vCPUs in the ECS flavor.

ram

No

String

Memory size (MB) in the ECS flavor.

Table 13 HwcEcsVolume

Parameter

Mandatory

Type

Description

id

Yes

String

Disk ID, in UUID format.

delete_on_termination

No

String

Whether to delete the disk when deleting the ECS.

true: Yes

false: No

boot_index

No

String

EVS disk boot sequence.

0 indicates the system disk.

Non-zero values indicate data disks.

device

No

String

Drive letter where the EVS disk is attacked to.

Table 14 HwcEcsMetadata

Parameter

Mandatory

Type

Description

image_id

No

String

Image ID of the ECS.

image_type

No

String

Image class. The following classes are supported:

  • gold: public images

  • private: private images

  • shared: shared images

image_name

No

String

Image name corresponding to the cloud server OS.

os_bit

No

String

OS architecture, 32-bit or 64-bit.

os_type

No

String

OS type. The value can be Linux or Windows.

vpc_id

No

String

ID of the VPC where the cloud server is located.

resource_spec_code

No

String

Resource specifications of the cloud server.

resource_type

No

String

Resource type of the cloud server.

1: The resource type is ECS.

agency_name

No

String

Name of the agency.

An agency is created by a tenant administrator on Identity and Access Management (IAM) to provide temporary credentials for the ECS service to access cloud servers.

Table 15 HwcEcsSchedulerHint

Parameter

Mandatory

Type

Description

group

No

Array of strings

ECS group ID, in UUID format.

You can obtain the BMS group ID from the console or by calling the API for querying ECS groups.

tenancy

No

Array of strings

It means users can create ECSs on a dedicated or shared host.

The value of this parameter can be shared or dedicated.

dedicated_host_id

No

Array of strings

Dedicated host ID.

Note:

A DeH ID takes effect only when tenancy is set to dedicated.

Table 16 HwcEcsHypervisor

Parameter

Mandatory

Type

Description

hypervisor_type

No

String

Virtualization type.

csd_hypervisor

No

String

Reserved attribute.

Table 17 HwcEip

Parameter

Mandatory

Type

Description

id

Yes

String

ID of the EIP. It uniquely identifies the EIP.

alias

Yes

String

EIP name.

protected_status

Yes

String

Anti-DDoS or CFW enabling status. The value can be OPEN or CLOSE.

project_id

Yes

String

Project ID.

enterprise_project_id

Yes

String

Enterprise project ID.

ip_version

Yes

Integer

IP address version.

Range:

4: Ipv4 addresses.

6: IPv6 addresses.

public_ip_address

No

String

EIP or IPv6 port address.

public_ipv6_address

No

String

This field is unavailable when IPv4 is used. The value is the obtained EIP when IPv6 is used.

publicip_pool_name

No

String

Network type of an EIP, including the public EIP pool (for example, 5_bgp or 5_sbgp) and dedicated EIP pool.

publicip_pool_id

No

String

The ID of the network the public IP address belongs to. The value is the network ID returned by publicip_pool_name.

status

Yes

String

EIP status.

Range:

FREEZED: frozen

BIND_ERROR: failed to be bound.

BINDING: Binding

PENDING_DELETE: being released

PENDING_CREATE: being created

NOTIFYING: assigning

NOTIFY_DELETE: releasing

PENDING_UPDATE: Updating

DOWN: It has not been bound

ACTIVE: It has been bound.

ELB: It has been bound to an ELB load balancer.

VPN: It has been bound to a VPN.

ERROR: failed

description

No

String

EIP Information.

tags

No

Array of strings

Function description: user tag. (Not displayed by default)

type

No

String

EIP type.

Range:

EIP

DUALSTACK

DUALSTACK_SUBNET

vnic

No

HwcEipVnic object

Port information if the instance has an EIP bound.

bandwidth

No

HwcEipBandwidth object

Bandwidth bound to an EIP.

lock_status

No

String

Frozen status of an EIP.

Metadata type is required. The EIP can be frozen due to arrears or public security issues.

Range:

police

locked

associate_instance_type

No

String

Type of the instance the EIP is bound to.

Range:

PORT

NATGW

ELB

ELBV1

VPN

null

associate_instance_id

No

String

ID of the instance the EIP is bound to.

allow_share_bandwidth_types

No

Array of strings

Types of the shared bandwidth that an EIP can be added to. If this parameter is left blank, the EIP cannot be added to any shared bandwidth.

EIPs can be added only to the shared bandwidth of these types.

created_at

No

String

UTC time when the resource was created.

Format: yyyy-MM-ddTHH:mm:ssZ

updated_at

No

String

UTC time when the resource was updated.

Format: yyyy-MM-ddTHH:mm:ssZ

public_border_group

No

String

Whether the resource is in a central region or an edge site.

The value can be center or an edge site name.

Constraints: Only EIPs that are in the same region or site as this resource can be associated.

Table 18 HwcEipVnic

Parameter

Mandatory

Type

Description

private_ip_address

No

String

Private IP address.

device_id

No

String

ID of the device that the port belongs to.

device_owner

No

String

Device where the vulnerability was found.

Value range: Valid devices.

network:dhcp

network:VIP_PORT

network:router_interface_distributed

network:router_centralized_snat

The system automatically sets this parameter.

vpc_id

No

String

VPC ID.

port_id

No

String

Port ID.

port_profile

No

String

Port profile.

mac

No

String

MAC address of the port.

vtep

No

String

VTEP IP

vni

No

String

VXLAN ID

instance_id

No

String

The ID of the instance that the port belongs to, for example, RDS instance ID.

instance_type

No

String

The type of instance the port belongs, for example, RDS.

Table 19 HwcEipBandwidth

Parameter

Mandatory

Type

Description

id

No

String

Bandwidth ID.

size

No

Integer

Bandwidth size.

Value range: 5 Mbit/s to 2,000 Mbit/s by default.

share_type

No

String

Bandwidth type. The bandwidth can be shared or dedicated.

Range:

PER: dedicated bandwidth

WHOLE: shared bandwidth

IPv6 addresses do not support bandwidth whose type is WHOLE.

name

No

String

Bandwidth name.

Table 20 HwcVpc

Parameter

Mandatory

Type

Description

id

Yes

String

Unique ID of the VPC.

name

Yes

String

VPC name.

description

No

String

VPC description.

protected_status

Yes

String

Whether CFW is enabled or the security group rule is configured. Value: OPEN or CLOSE.

cidr

No

String

Available subnets in the VPC.

Range:

10.0.0.0/8 to 10.255.255.240/28

172.16.0.0/12 to 172.31.255.240/28

192.168.0.0/16 to 192.168.255.240/28

If cidr is not specified, the default value is "".

Constraints: The value must be an IPv4 address in CIDR format, for example, 192.168.0.0/16.

extend_cidrs

No

Array of strings

Extended CIDR block of the VPC.

Constraints: Currently, only IPv4 CIDR blocks are supported.

status

Yes

String

VPC status.

Range:

  • PENDING: creating

  • ACTIVE: created

project_id

Yes

String

ID of the project to which the VPC belongs.

enterprise_project_id

No

String

ID of the enterprise project that the VPC belongs to.

Value range: 0 to 36 characters in UUID format, with hyphens (-) included. 0 indicates the default enterprise project.

created_at

Yes

String

Time when the VPC was created.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

updated_at

Yes

String

Time when the VPC was updated.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

cloud_resources

No

Array of HwcVpcCloudResource objects

Types and quantity of resources associated with the VPC.

Currently, only route tables and subnets of the VPC are returned. The number of virsubnet is the total number of IPv4 and IPv6 subnets.

tags

No

Array of Tag objects

VPC tags. For details, see the Tag object.

Value range: 0 to 10 tag key-value pairs.

Table 21 HwcVpcCloudResource

Parameter

Mandatory

Type

Description

resource_type

No

String

Resource type.

resource_count

No

Integer

Number of resources.

Table 22 HwcSubnet

Parameter

Mandatory

Type

Description

id

Yes

String

Unique ID of the security group.

name

Yes

String

Security group name.

description

No

String

Description of the security group.

project_id

Yes

String

ID of the project that the security group belongs to.

created_at

Yes

String

Time the security group was created.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

updated_at

Yes

String

Time the security group was updated.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

enterprise_project_id

No

String

ID of the enterprise project that the security group belongs to.

Value range: 0 to 36 characters in UUID format, with hyphens (-) included. 0 indicates the default enterprise project.

security_group_rules

No

Array of HwcSubnetSecurityGroupRule objects

Security group rules.

Table 23 HwcSubnetSecurityGroupRule

Parameter

Mandatory

Type

Description

id

Yes

String

Unique ID of the security group rule.

Value range: standard UUID with hyphens (-).

description

No

String

Description of the security group rule.

security_group_id

Yes

String

The ID of the security group that contains the security rules.

direction

Yes

String

Security group rule direction.

Range:

  • ingress: inbound direction

-egress: outbound direction

protocol

Yes

String

Protocol type.

Value range: icmp, tcp, udp, icmpv6, or an IP protocol number.

Constraint: If this parameter is left blank, all protocols are supported. If the protocol is icmpv6, the IP version must be IPv6. If the protocol is icmp, the IP version must be IPv4.

ethertype

Yes

String

IP address protocol type.

Value range: IPv4 and IPv6

Constraints : If this parameter is not specified, the value IPv4 will be used by default.

multiport

Yes

String

Port range.

Value range: The value can be a single port (80), a port range (1-30), or inconsecutive ports separated by commas (22, 3389, 80).

action

Yes

String

Policy for a security group rule to take effect.

Range:

allow: The traffic is allowed.

deny: The traffic is denied.

Constraints : The default value is deny.

priority

Yes

Integer

Priority.

Value range:1 to 100. 1: the highest priority.

remote_group_id

No

String

ID of the remote security group.

Value range: ID of an existing security group.

Constraints: This parameter is mutually exclusive with remote_ip_prefix and remote_address_group_id.

remote_ip_prefix

No

String

Remote IP address.

When direction is set to egress, the value is the IP address of the resources VM accesses.

When direction is ingress, the value is the IP address of the device that accesses the VM.

Value range: IP address or CIDR block.

Constraints: This parameter is mutually exclusive with remote_group_id and remote_address_group_id.

remote_address_group_id

No

String

Remote address group ID.

Value range: ID of an existing IP address group.

Constraints: This parameter is mutually exclusive with remote_ip_prefix and remote_group_id.

created_at

Yes

String

Time when the security group rule was created.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

updated_at

Yes

String

Time when the security group rule was updated.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

project_id

Yes

String

ID of the project that the security group rule belongs to.

Table 24 HwcRds

Parameter

Mandatory

Type

Description

id

Yes

String

Instance ID.

name

Yes

String

Instance name.

protected_status

Yes

String

DBSS status. The value can be OPEN or CLOSE.

status

Yes

String

Instance status.

Value range:

BUILD: The instance is being created.

ACTIVE: The instance is running properly.

FAILED: The instance is abnormal.

FROZEN: The instance is frozen.

MODIFYING: The instance is being scaled up.

REBOOTING: The instance is being rebooted.

RESTORING: The instance is being restored.

MODIFYING INSTANCE TYPE: The instance is being changed to primary/standby.

SWITCHOVER: The instance is being switched over.

MIGRATING: The instance is being migrated.

BACKING UP: The instance is being backed up.

MODIFYING DATABASE PORT: The database port is being changed.

STORAGE FULL: The instance disk space is full.

alias

No

String

Remarks of the instance.

private_ips

No

Array of strings

Private IP addresses. An empty string is displayed if no ECSs have been created.

private_dns_names

No

Array of strings

Private domain names of the instance. After an instance is created, you need to manually apply for a private zone, or the private zone is left blank.

public_ips

No

Array of strings

Public IP addresses.

port

Yes

Integer

Database port number.

An RDS for MySQL instance can use ports 1024 to 65535, excluding 12017 and 33071, which are reserved for RDS system use.

An RDS for PostgreSQL database can use ports 2100 to 9500.

An RDS for SQL Server DB instance port is 1433 or any value from 2100 to 9500, excluding 5355 and 5985. For Microsoft SQL Server 2017 Enterprise, Standard, and Web editions, the database port cannot be 5050, 5353, or 5986.

If this parameter is not specified, the default port is as follows:

RDS for MySQL: 3306

RDS for PostgreSQL: 5432

RDS for SQL Server: 1433

enable_ssl

Yes

Boolean

Whether SSL is enabled.

true: SSL is enabled.

false: SSL is disabled.

type

Yes

String

Instance type. Single: a single DB instance. Ha: primary/standby DB instance. Replica: read-only replica. ** Enterprise**: distributed instance (enterprise edition).

ha

Yes

HwcRdsHa object

HA information. This parameter is returned only for HA instances.

region

Yes

String

Region where the instance is deployed.

datastore

Yes

HwcRdsDatastore object

Database information.

created

Yes

String

Creation time. The format is yyyy-mm-ddThh:mm:ssZ.

T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, "+0100" is displayed.

Note: This parameter is left blank when the instance is being created, but after the instance is created, this is a required field.

updated

No

String

Update time. The format is the same as that of the created field.

Note: This parameter is left blank when the instance is being created, but after the instance is created, this is a required field.

db_user_name

No

String

Default username.

vpc_id

Yes

String

VPC ID.

subnet_id

Yes

String

Subnet ID.

security_group_id

Yes

String

Security group ID.

flavor_ref

Yes

String

Specification code.

cpu

Yes

String

CPU size. For example, 1 indicates 1U.

mem

Yes

String

Memory size, in GB.

volume

Yes

HwcRdsVolume object

Volume information.

tags

No

Array of Tag objects

Tag list. If there is no tag in the list, an empty array is returned.

enterprise_project_id

No

String

Enterprise project ID.

project_id

Yes

String

Project ID.

switch_strategy

Yes

String

Database switchover policy. The value can be reliability or availability, indicating the reliability first and availability first, respectively.

read_only_by_user

Yes

Boolean

Whether the instance is set to read-only. This parameter is available only to RDS for MySQL.

true: The instance is set to read-only.

false: The instance is not set to read-only.

backup_strategy

Yes

HwcRdsBackupStrategy object

Backup policy.

maintenance_window

Yes

String

Maintenance window in the UTC format.

nodes

Yes

Array of HwcRdsNode objects

Primary/standby instance information.

related_instance

Yes

Array of HwcRdsRelatedInstance objects

All associated DB instances.

disk_encryption_id

No

String

Disk encryption key ID.

time_zone

Yes

String

Time zone.

backup_used_space

No

Double

Used backup space, in GB.

This field is returned only when you query information about a single RDS for SQL Server DB instance.

storage_used_space

Yes

Double

Used disk space, in GB.

This field is returned only when you query information about a single RDS for SQL Server DB instance.

associated_with_ddm

Yes

Boolean

Whether this instance is associated with a DDM instance.

max_iops

Yes

Long

Maximum IOPS of the instance disk.

This field is returned only for SQL Server DB instances.

expiration_time

Yes

String

Instance expiration time. The format is yyyy-mm-ddThh:mm:ssZ.

This field is returned only in yearly/monthly scenarios.

Table 25 HwcRdsHa

Parameter

Mandatory

Type

Description

replication_mode

Yes

String

Replication mode for the standby instance.

The value cannot be left blank.

For RDS for MySQL, the value is async or semisync.

For RDS PostgreSQL instances, the value is async or sync.

For RDS for Microsoft SQL Server instances, the value is "sync".

Note:

async: the asynchronous replication mode.

semisync: the semi-synchronous replication mode.

sync: the synchronous replication.

Table 26 HwcRdsDatastore

Parameter

Mandatory

Type

Description

type

Yes

String

DB engine. Its value is case-insensitive and can be:

MySQL

PostgreSQL

SQLServer

version

Yes

String

Database version.

complete_version

No

String

Complete database version number. This parameter is returned only when the database engine is PostgreSQL.

Table 27 HwcRdsVolume

Parameter

Mandatory

Type

Description

type

Yes

String

Disk type.

size

Yes

Integer

Disk size.

Table 28 Tag

Parameter

Mandatory

Type

Description

key

Yes

String

Key. The value can contain a maximum of 128 Unicode characters. The key cannot be empty. The system does not verify the character set of key when searching for resources. key cannot be empty, an empty string, or spaces. Before using key, delete single-byte character (SBC) spaces before and after the value.

values

Yes

Array of strings

List of tag values. Each value can contain a maximum of 255 Unicode characters. Before verifying and using values, delete SBC spaces before and after the value.

The value can be an empty array but cannot be left blank.

If values is left blank, it indicates any_value (querying any value). All values of a tag key are in the OR relationship.

Table 29 HwcRdsBackupStrategy

Parameter

Mandatory

Type

Description

start_time

No

String

Backup time window. Automated backups will be triggered during the backup time window.

The current time is the UTC time.

keep_days

No

Integer

Backup retention days.

Value range: 0 to 732. If the value is 0, the automated backup policy has not been configured or has been disabled. To extend the retention period, contact customer service. Automated backups can be retained for up to 2,562 days.

Table 30 HwcRdsNode

Parameter

Mandatory

Type

Description

id

Yes

String

Node ID.

name

Yes

String

Node name.

role

Yes

String

Node type. The value can be master, slave, or readreplica, indicating the primary node, standby node, and read replica node, respectively.

status

Yes

String

Node status.

availability_zone

Yes

String

AZ.

Table 31 HwcRdsRelatedInstance

Parameter

Mandatory

Type

Description

id

Yes

String

ID of the associated instance.

type

Yes

String

Type of the associated instance.

replica_of: the primary instance.

  • replica: read replicas.

Table 32 HwcDomain

Parameter

Mandatory

Type

Description

domain_name

Yes

String

Domain name.

expire_date

Yes

String

Domain name expiration time, for example, 2023-01-10.

status

Yes

String

DNS status.

audit_status

Yes

String

Domain name ownership validation status.

Range:

NONAUDIT: Ownership is not validated.

SUCCEED: Ownership is validated.

FAILED: Ownership validation failed.

AUDITING: The ownership validation request is being reviewed.

audit_unpass_reason

Yes

String

Causes of domain name ownership validation failure.

transfer_status

No

String

Ownership status.

reg_type

Yes

String

Registration type.

Range:

PERSONAL: individual

COMPANY: enterprise

privacy_protection

Yes

String

Whether to enable privacy protection.

name_server

Yes

Array of strings

DNS server list.

credential_type

Yes

String

Certificate type.

credential_id

Yes

String

Certificate No.

registrar

Yes

String

Domain name registrar.

contact

Yes

Array of HwcDomainContact objects

Contact information.

Table 33 HwcDomainContact

Parameter

Mandatory

Type

Description

email

Yes

String

Email address.

register

Yes

String

Domain name owner.

contact_name

Yes

String

Contact person.

phone_num

Yes

String

Contact phone number.

province

Yes

String

Province.

city

Yes

String

City.

address

Yes

String

Address.

zip_code

Yes

String

Postal code.

Table 34 Website

Parameter

Mandatory

Type

Description

value

Yes

String

Website URL.

main_domain

Yes

String

Primary domain name.

protected_status

Yes

String

WAF enabling status. The value can be OPEN or CLOSE.

is_public

Yes

Boolean

Public or private zone.

true: public zone.

false: private zone.

remark

No

String

Website remarks.

name_server

Yes

Array of strings

Website server list.

extend_propertites

No

WebsiteExtendProperties object

Other attributes.

Table 35 WebsiteExtendProperties

Parameter

Mandatory

Type

Description

mac_addr

No

String

MAC address.

Table 36 OcaIp

Parameter

Mandatory

Type

Description

value

Yes

String

Resource value.

version

Yes

String

Resource type:

IPv4 or IPv6.

network

Yes

OcaIpNetwork object

Network information.

remark

No

String

Resource remarks.

name

No

String

Resource name. The default value is the resource value.

relative_value

No

String

Opposite value. For example, if the IP address is an IPv4 address, the value is ipv6.

server_room

Yes

String

Equipment rooms.

server_rack

Yes

String

Cabinet.

data_center

Yes

OcaIpDataCenter object

Data center.

mac_addr

No

String

MAC address.

important

No

String

Importance level. 0: Unimportant. 1: Important.

extend_propertites

No

OcaIpExtendProperties object

Other third-party attributes.

Table 37 OcaIpNetwork

Parameter

Mandatory

Type

Description

is_public

Yes

Boolean

Public or private zone.

true: public zone.

false: private zone.

partition

No

String

Network zone. The value can be OM, PSZ, or DMZ.

plane

No

String

Network plane (special code for on-premises scenarios).

vxlan_id

No

String

Virtual network ID.

Table 38 OcaIpDataCenter

Parameter

Mandatory

Type

Description

latitude

No

Float

Latitude.

longitude

No

Float

Longitude.

city_code

Yes

String

City code.

country_code

Yes

String

Country/Region code.

Table 39 OcaIpExtendProperties

Parameter

Mandatory

Type

Description

device

No

OcaIpDevice object

Device information.

system

No

OcaIpSystem object

System information.

services

No

Array of OcaIpService objects

Application information.

Table 40 OcaIpDevice

Parameter

Mandatory

Type

Description

type

No

String

Device type.

model

No

String

Device model.

vendor

No

OcaIpVendor object

Device vendor.

Table 41 OcaIpSystem

Parameter

Mandatory

Type

Description

family

No

String

System type.

name

No

String

System name.

version

No

String

System version.

vendor

No

OcaIpVendor object

System vendor.

Table 42 OcaIpService

Parameter

Mandatory

Type

Description

port

No

Integer

Port of the application.

protocol

No

String

Protocol.

name

No

String

Application name.

version

No

String

Application version.

vendor

No

OcaIpVendor object

Application vendor.

Table 43 OcaIpVendor

Parameter

Mandatory

Type

Description

name

No

String

Supplier name.

is_xc

No

Boolean

Whether the supplier is an in-house vendor.

Response Parameters

Status code: 200

Table 44 Response body parameters

Parameter

Type

Description

data_object

ResourceDetail object

Resource details.

Table 45 ResourceDetail

Parameter

Type

Description

id

String

Resource ID.

name

String

Resource name.

provider

String

Resource source. The cloud service name (cloud services) or specific on-premises data center (IDC) name is provided.

type

String

Resource type, such as ECS, VPC, EVS, IP address, and URL.

checksum

String

Resource checksum.

created

String

Resource creation time.

provisioning_state

String

Resource operation status.

environment

ResourceEnvironment object

Environment of the resource.

department

Department object

Department of the resource.

governance_user

GovernanceUser object

Resource governance owner.

level

Integer

0: test; 1: general; 2: key resource

properties

Properties object

Resource attribute details.

Table 46 ResourceEnvironment

Parameter

Type

Description

vendor_type

String

Environment provider.

domain_id

String

This field is used for resources on Huawei Cloud only. It specifies the resource owner.

region_id

String

This parameter is only used for resources on Huawei Cloud. It specifies the resource ownership. For global services, the value is "global".

project_id

String

This parameter is only used for resources on Huawei Cloud. It specifies the resource ownership. For global services, the default value is null.

ep_id

String

This parameter is only used for resources on Huawei Cloud. It specifies the ID of the enterprise project to which the resource belongs.

ep_name

String

This parameter is only used for resources on Huawei Cloud. It specifies the name of the enterprise project to which the resource belongs.

vendor_name

String

This field is used for OCA only. It specifies the asset probes or asset provider.

idc_name

String

This field is used for OCA only. It specifies the on-premises data center name.

idc_id

String

This field is used for OCA only. It specifies the on-premises data center ID.

Table 47 Department

Parameter

Type

Description

id

String

ID of the department the resource belongs to. If this parameter is not specified, the default value is used.

name

String

Department of the resource.

Table 48 GovernanceUser

Parameter

Type

Description

type

String

Resource governance owner type.

name

String

Name of the resource governance owner. If this parameter is left blank, ignore it. If this parameter does not exist, create it.

Table 49 Properties

Parameter

Type

Description

hwc_ecs

HwcEcs object

Huawei Cloud ECS details.

hwc_eip

HwcEip object

Huawei Cloud EIP.

hwc_vpc

HwcVpc object

Huawei Cloud VPC.

hwc_subnet

HwcSubnet object

Huawei Cloud subnet.

hwc_rds

HwcRds object

Huawei Cloud RDS.

hwc_domain

HwcDomain object

Huawei Cloud domain name.

website

Website object

Website.

oca_ip

OcaIp object

IP address of a resource outside the cloud.

Table 50 HwcEcs

Parameter

Type

Description

id

String

ECS ID, in UUID format.

name

String

ECS name.

protected_status

String

HSS status. The value can be OPEN or CLOSE.

description

String

ECS description.

status

String

ECS status.

Range:

ACTIVE, BUILD, ERROR, HARD_REBOOT, MIGRATING, REBOOT, REBUILD, RESIZE, REVERT_RESIZE, SHUTOFF, VERIFY_RESIZE, and DELETED.

locked

Boolean

Whether the ECS is locked.

  • true: locked

  • false: not locked

enterprise_project_id

String

ID of the enterprise project that the ECS belongs to.

user_id

String

ID of the account used to create the ECS, in UUID format.

project_id

String

ID of the project that the ECS belongs to, in UUID format.

host_id

String

ID of the host where the ECS is deployed.

host_name

String

Name of the host where the ECS is deployed.

host_status

String

Status of the host accommodating the ECS.

UP: The service is normal.

UNKNOWN: The status is unknown.

DOWN: The service is abnormal.

MAINTENANCE: The service is in maintenance state.

Null: The ECS does not have host information.

addresses

Array of HwcEcsAddress objects

Network attribute of the ECS.

security_groups

Array of HwcEcsSecurityGroup objects

Security groups to which the ECS belongs.

availability_zone

String

Name of the AZ where the ECS is deployed.

flavor

HwcEcsFlavor object

ECS flavor.

volumes_attached

Array of HwcEcsVolume objects

Disk attached to the ECS.

metadata

HwcEcsMetadata object

ECS metadata.

updated

String

The last time the ECS was updated, for example, time when it was started, stopped, or restarted.

Example time format: 2019-05-22T03:30:52Z

created

String

The time when the ECS was created.

Example time format: 2019-05-22T03:19:19Z

key_name

String

Name of the key pair used for the ECS.

scheduler_hints

HwcEcsSchedulerHint object

ECS scheduling information.

hypervisor

HwcEcsHypervisor object

Virtualization information.

Table 51 HwcEcsAddress

Parameter

Type

Description

version

String

IP address version.

  • 4: IPv4 addresses

  • 6: IPv6 addresses

addr

String

IP address.

type

String

IP address type.

  • fixed: private IP addresses

  • floating: floating IP addresses

mac_addr

String

MAC address.

port_id

String

ID of the port corresponding to the IP address.

vpc_id

String

ID of the VPC that the ECS belongs to.

Table 52 HwcEcsSecurityGroup

Parameter

Type

Description

id

String

Security group ID.

name

String

Security group name or UUID.

Table 53 HwcEcsFlavor

Parameter

Type

Description

id

String

ECS flavor ID.

name

String

ECS flavor name.

disk

String

System disk size in the ECS flavor. The value 0 indicates that the disk size is not limited.

vcpus

String

Number of vCPUs in the ECS flavor.

ram

String

Memory size (MB) in the ECS flavor.

Table 54 HwcEcsVolume

Parameter

Type

Description

id

String

Disk ID, in UUID format.

delete_on_termination

String

Whether to delete the disk when deleting the ECS.

true: Yes

false: No

boot_index

String

EVS disk boot sequence.

0 indicates the system disk.

Non-zero values indicate data disks.

device

String

Drive letter where the EVS disk is attacked to.

Table 55 HwcEcsMetadata

Parameter

Type

Description

image_id

String

Image ID of the ECS.

image_type

String

Image class. The following classes are supported:

  • gold: public images

  • private: private images

  • shared: shared images

image_name

String

Image name corresponding to the cloud server OS.

os_bit

String

OS architecture, 32-bit or 64-bit.

os_type

String

OS type. The value can be Linux or Windows.

vpc_id

String

ID of the VPC where the cloud server is located.

resource_spec_code

String

Resource specifications of the cloud server.

resource_type

String

Resource type of the cloud server.

1: The resource type is ECS.

agency_name

String

Name of the agency.

An agency is created by a tenant administrator on Identity and Access Management (IAM) to provide temporary credentials for the ECS service to access cloud servers.

Table 56 HwcEcsSchedulerHint

Parameter

Type

Description

group

Array of strings

ECS group ID, in UUID format.

You can obtain the BMS group ID from the console or by calling the API for querying ECS groups.

tenancy

Array of strings

It means users can create ECSs on a dedicated or shared host.

The value of this parameter can be shared or dedicated.

dedicated_host_id

Array of strings

Dedicated host ID.

Note:

A DeH ID takes effect only when tenancy is set to dedicated.

Table 57 HwcEcsHypervisor

Parameter

Type

Description

hypervisor_type

String

Virtualization type.

csd_hypervisor

String

Reserved attribute.

Table 58 HwcEip

Parameter

Type

Description

id

String

ID of the EIP. It uniquely identifies the EIP.

alias

String

EIP name.

protected_status

String

Anti-DDoS or CFW enabling status. The value can be OPEN or CLOSE.

project_id

String

Project ID.

enterprise_project_id

String

Enterprise project ID.

ip_version

Integer

IP address version.

Range:

4: Ipv4 addresses.

6: IPv6 addresses.

public_ip_address

String

EIP or IPv6 port address.

public_ipv6_address

String

This field is unavailable when IPv4 is used. The value is the obtained EIP when IPv6 is used.

publicip_pool_name

String

Network type of an EIP, including the public EIP pool (for example, 5_bgp or 5_sbgp) and dedicated EIP pool.

publicip_pool_id

String

The ID of the network the public IP address belongs to. The value is the network ID returned by publicip_pool_name.

status

String

EIP status.

Range:

FREEZED: frozen

BIND_ERROR: failed to be bound.

BINDING: Binding

PENDING_DELETE: being released

PENDING_CREATE: being created

NOTIFYING: assigning

NOTIFY_DELETE: releasing

PENDING_UPDATE: Updating

DOWN: It has not been bound

ACTIVE: It has been bound.

ELB: It has been bound to an ELB load balancer.

VPN: It has been bound to a VPN.

ERROR: failed

description

String

EIP Information.

tags

Array of strings

Function description: user tag. (Not displayed by default)

type

String

EIP type.

Range:

EIP

DUALSTACK

DUALSTACK_SUBNET

vnic

HwcEipVnic object

Port information if the instance has an EIP bound.

bandwidth

HwcEipBandwidth object

Bandwidth bound to an EIP.

lock_status

String

Frozen status of an EIP.

Metadata type is required. The EIP can be frozen due to arrears or public security issues.

Range:

police

locked

associate_instance_type

String

Type of the instance the EIP is bound to.

Range:

PORT

NATGW

ELB

ELBV1

VPN

null

associate_instance_id

String

ID of the instance the EIP is bound to.

allow_share_bandwidth_types

Array of strings

Types of the shared bandwidth that an EIP can be added to. If this parameter is left blank, the EIP cannot be added to any shared bandwidth.

EIPs can be added only to the shared bandwidth of these types.

created_at

String

UTC time when the resource was created.

Format: yyyy-MM-ddTHH:mm:ssZ

updated_at

String

UTC time when the resource was updated.

Format: yyyy-MM-ddTHH:mm:ssZ

public_border_group

String

Whether the resource is in a central region or an edge site.

The value can be center or an edge site name.

Constraints: Only EIPs that are in the same region or site as this resource can be associated.

Table 59 HwcEipVnic

Parameter

Type

Description

private_ip_address

String

Private IP address.

device_id

String

ID of the device that the port belongs to.

device_owner

String

Device where the vulnerability was found.

Value range: Valid devices.

network:dhcp

network:VIP_PORT

network:router_interface_distributed

network:router_centralized_snat

The system automatically sets this parameter.

vpc_id

String

VPC ID.

port_id

String

Port ID.

port_profile

String

Port profile.

mac

String

MAC address of the port.

vtep

String

VTEP IP

vni

String

VXLAN ID

instance_id

String

The ID of the instance that the port belongs to, for example, RDS instance ID.

instance_type

String

The type of instance the port belongs, for example, RDS.

Table 60 HwcEipBandwidth

Parameter

Type

Description

id

String

Bandwidth ID.

size

Integer

Bandwidth size.

Value range: 5 Mbit/s to 2,000 Mbit/s by default.

share_type

String

Bandwidth type. The bandwidth can be shared or dedicated.

Range:

PER: dedicated bandwidth

WHOLE: shared bandwidth

IPv6 addresses do not support bandwidth whose type is WHOLE.

name

String

Bandwidth name.

Table 61 HwcVpc

Parameter

Type

Description

id

String

Unique ID of the VPC.

name

String

VPC name.

description

String

VPC description.

protected_status

String

Whether CFW is enabled or the security group rule is configured. Value: OPEN or CLOSE.

cidr

String

Available subnets in the VPC.

Range:

10.0.0.0/8 to 10.255.255.240/28

172.16.0.0/12 to 172.31.255.240/28

192.168.0.0/16 to 192.168.255.240/28

If cidr is not specified, the default value is "".

Constraints: The value must be an IPv4 address in CIDR format, for example, 192.168.0.0/16.

extend_cidrs

Array of strings

Extended CIDR block of the VPC.

Constraints: Currently, only IPv4 CIDR blocks are supported.

status

String

VPC status.

Range:

  • PENDING: creating

  • ACTIVE: created

project_id

String

ID of the project to which the VPC belongs.

enterprise_project_id

String

ID of the enterprise project that the VPC belongs to.

Value range: 0 to 36 characters in UUID format, with hyphens (-) included. 0 indicates the default enterprise project.

created_at

String

Time when the VPC was created.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

updated_at

String

Time when the VPC was updated.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

cloud_resources

Array of HwcVpcCloudResource objects

Types and quantity of resources associated with the VPC.

Currently, only route tables and subnets of the VPC are returned. The number of virsubnet is the total number of IPv4 and IPv6 subnets.

tags

Array of Tag objects

VPC tags. For details, see the Tag object.

Value range: 0 to 10 tag key-value pairs.

Table 62 HwcVpcCloudResource

Parameter

Type

Description

resource_type

String

Resource type.

resource_count

Integer

Number of resources.

Table 63 HwcSubnet

Parameter

Type

Description

id

String

Unique ID of the security group.

name

String

Security group name.

description

String

Description of the security group.

project_id

String

ID of the project that the security group belongs to.

created_at

String

Time the security group was created.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

updated_at

String

Time the security group was updated.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

enterprise_project_id

String

ID of the enterprise project that the security group belongs to.

Value range: 0 to 36 characters in UUID format, with hyphens (-) included. 0 indicates the default enterprise project.

security_group_rules

Array of HwcSubnetSecurityGroupRule objects

Security group rules.

Table 64 HwcSubnetSecurityGroupRule

Parameter

Type

Description

id

String

Unique ID of the security group rule.

Value range: standard UUID with hyphens (-).

description

String

Description of the security group rule.

security_group_id

String

The ID of the security group that contains the security rules.

direction

String

Security group rule direction.

Range:

  • ingress: inbound direction

-egress: outbound direction

protocol

String

Protocol type.

Value range: icmp, tcp, udp, icmpv6, or an IP protocol number.

Constraint: If this parameter is left blank, all protocols are supported. If the protocol is icmpv6, the IP version must be IPv6. If the protocol is icmp, the IP version must be IPv4.

ethertype

String

IP address protocol type.

Value range: IPv4 and IPv6

Constraints : If this parameter is not specified, the value IPv4 will be used by default.

multiport

String

Port range.

Value range: The value can be a single port (80), a port range (1-30), or inconsecutive ports separated by commas (22, 3389, 80).

action

String

Policy for a security group rule to take effect.

Range:

allow: The traffic is allowed.

deny: The traffic is denied.

Constraints : The default value is deny.

priority

Integer

Priority.

Value range:1 to 100. 1: the highest priority.

remote_group_id

String

ID of the remote security group.

Value range: ID of an existing security group.

Constraints: This parameter is mutually exclusive with remote_ip_prefix and remote_address_group_id.

remote_ip_prefix

String

Remote IP address.

When direction is set to egress, the value is the IP address of the resources VM accesses.

When direction is ingress, the value is the IP address of the device that accesses the VM.

Value range: IP address or CIDR block.

Constraints: This parameter is mutually exclusive with remote_group_id and remote_address_group_id.

remote_address_group_id

String

Remote address group ID.

Value range: ID of an existing IP address group.

Constraints: This parameter is mutually exclusive with remote_ip_prefix and remote_group_id.

created_at

String

Time when the security group rule was created.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

updated_at

String

Time when the security group rule was updated.

Value range: UTC time in the format of yyyy-MM-ddTHH:mm:ss.

project_id

String

ID of the project that the security group rule belongs to.

Table 65 HwcRds

Parameter

Type

Description

id

String

Instance ID.

name

String

Instance name.

protected_status

String

DBSS status. The value can be OPEN or CLOSE.

status

String

Instance status.

Value range:

BUILD: The instance is being created.

ACTIVE: The instance is running properly.

FAILED: The instance is abnormal.

FROZEN: The instance is frozen.

MODIFYING: The instance is being scaled up.

REBOOTING: The instance is being rebooted.

RESTORING: The instance is being restored.

MODIFYING INSTANCE TYPE: The instance is being changed to primary/standby.

SWITCHOVER: The instance is being switched over.

MIGRATING: The instance is being migrated.

BACKING UP: The instance is being backed up.

MODIFYING DATABASE PORT: The database port is being changed.

STORAGE FULL: The instance disk space is full.

alias

String

Remarks of the instance.

private_ips

Array of strings

Private IP addresses. An empty string is displayed if no ECSs have been created.

private_dns_names

Array of strings

Private domain names of the instance. After an instance is created, you need to manually apply for a private zone, or the private zone is left blank.

public_ips

Array of strings

Public IP addresses.

port

Integer

Database port number.

An RDS for MySQL instance can use ports 1024 to 65535, excluding 12017 and 33071, which are reserved for RDS system use.

An RDS for PostgreSQL database can use ports 2100 to 9500.

An RDS for SQL Server DB instance port is 1433 or any value from 2100 to 9500, excluding 5355 and 5985. For Microsoft SQL Server 2017 Enterprise, Standard, and Web editions, the database port cannot be 5050, 5353, or 5986.

If this parameter is not specified, the default port is as follows:

RDS for MySQL: 3306

RDS for PostgreSQL: 5432

RDS for SQL Server: 1433

enable_ssl

Boolean

Whether SSL is enabled.

true: SSL is enabled.

false: SSL is disabled.

type

String

Instance type. Single: a single DB instance. Ha: primary/standby DB instance. Replica: read-only replica. ** Enterprise**: distributed instance (enterprise edition).

ha

HwcRdsHa object

HA information. This parameter is returned only for HA instances.

region

String

Region where the instance is deployed.

datastore

HwcRdsDatastore object

Database information.

created

String

Creation time. The format is yyyy-mm-ddThh:mm:ssZ.

T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, "+0100" is displayed.

Note: This parameter is left blank when the instance is being created, but after the instance is created, this is a required field.

updated

String

Update time. The format is the same as that of the created field.

Note: This parameter is left blank when the instance is being created, but after the instance is created, this is a required field.

db_user_name

String

Default username.

vpc_id

String

VPC ID.

subnet_id

String

Subnet ID.

security_group_id

String

Security group ID.

flavor_ref

String

Specification code.

cpu

String

CPU size. For example, 1 indicates 1U.

mem

String

Memory size, in GB.

volume

HwcRdsVolume object

Volume information.

tags

Array of Tag objects

Tag list. If there is no tag in the list, an empty array is returned.

enterprise_project_id

String

Enterprise project ID.

project_id

String

Project ID.

switch_strategy

String

Database switchover policy. The value can be reliability or availability, indicating the reliability first and availability first, respectively.

read_only_by_user

Boolean

Whether the instance is set to read-only. This parameter is available only to RDS for MySQL.

true: The instance is set to read-only.

false: The instance is not set to read-only.

backup_strategy

HwcRdsBackupStrategy object

Backup policy.

maintenance_window

String

Maintenance window in the UTC format.

nodes

Array of HwcRdsNode objects

Primary/standby instance information.

related_instance

Array of HwcRdsRelatedInstance objects

All associated DB instances.

disk_encryption_id

String

Disk encryption key ID.

time_zone

String

Time zone.

backup_used_space

Double

Used backup space, in GB.

This field is returned only when you query information about a single RDS for SQL Server DB instance.

storage_used_space

Double

Used disk space, in GB.

This field is returned only when you query information about a single RDS for SQL Server DB instance.

associated_with_ddm

Boolean

Whether this instance is associated with a DDM instance.

max_iops

Long

Maximum IOPS of the instance disk.

This field is returned only for SQL Server DB instances.

expiration_time

String

Instance expiration time. The format is yyyy-mm-ddThh:mm:ssZ.

This field is returned only in yearly/monthly scenarios.

Table 66 HwcRdsHa

Parameter

Type

Description

replication_mode

String

Replication mode for the standby instance.

The value cannot be left blank.

For RDS for MySQL, the value is async or semisync.

For RDS PostgreSQL instances, the value is async or sync.

For RDS for Microsoft SQL Server instances, the value is "sync".

Note:

async: the asynchronous replication mode.

semisync: the semi-synchronous replication mode.

sync: the synchronous replication.

Table 67 HwcRdsDatastore

Parameter

Type

Description

type

String

DB engine. Its value is case-insensitive and can be:

MySQL

PostgreSQL

SQLServer

version

String

Database version.

complete_version

String

Complete database version number. This parameter is returned only when the database engine is PostgreSQL.

Table 68 HwcRdsVolume

Parameter

Type

Description

type

String

Disk type.

size

Integer

Disk size.

Table 69 Tag

Parameter

Type

Description

key

String

Key. The value can contain a maximum of 128 Unicode characters. The key cannot be empty. The system does not verify the character set of key when searching for resources. key cannot be empty, an empty string, or spaces. Before using key, delete single-byte character (SBC) spaces before and after the value.

values

Array of strings

List of tag values. Each value can contain a maximum of 255 Unicode characters. Before verifying and using values, delete SBC spaces before and after the value.

The value can be an empty array but cannot be left blank.

If values is left blank, it indicates any_value (querying any value). All values of a tag key are in the OR relationship.

Table 70 HwcRdsBackupStrategy

Parameter

Type

Description

start_time

String

Backup time window. Automated backups will be triggered during the backup time window.

The current time is the UTC time.

keep_days

Integer

Backup retention days.

Value range: 0 to 732. If the value is 0, the automated backup policy has not been configured or has been disabled. To extend the retention period, contact customer service. Automated backups can be retained for up to 2,562 days.

Table 71 HwcRdsNode

Parameter

Type

Description

id

String

Node ID.

name

String

Node name.

role

String

Node type. The value can be master, slave, or readreplica, indicating the primary node, standby node, and read replica node, respectively.

status

String

Node status.

availability_zone

String

AZ.

Table 72 HwcRdsRelatedInstance

Parameter

Type

Description

id

String

ID of the associated instance.

type

String

Type of the associated instance.

replica_of: the primary instance.

  • replica: read replicas.

Table 73 HwcDomain

Parameter

Type

Description

domain_name

String

Domain name.

expire_date

String

Domain name expiration time, for example, 2023-01-10.

status

String

DNS status.

audit_status

String

Domain name ownership validation status.

Range:

NONAUDIT: Ownership is not validated.

SUCCEED: Ownership is validated.

FAILED: Ownership validation failed.

AUDITING: The ownership validation request is being reviewed.

audit_unpass_reason

String

Causes of domain name ownership validation failure.

transfer_status

String

Ownership status.

reg_type

String

Registration type.

Range:

PERSONAL: individual

COMPANY: enterprise

privacy_protection

String

Whether to enable privacy protection.

name_server

Array of strings

DNS server list.

credential_type

String

Certificate type.

credential_id

String

Certificate No.

registrar

String

Domain name registrar.

contact

Array of HwcDomainContact objects

Contact information.

Table 74 HwcDomainContact

Parameter

Type

Description

email

String

Email address.

register

String

Domain name owner.

contact_name

String

Contact person.

phone_num

String

Contact phone number.

province

String

Province.

city

String

City.

address

String

Address.

zip_code

String

Postal code.

Table 75 Website

Parameter

Type

Description

value

String

Website URL.

main_domain

String

Primary domain name.

protected_status

String

WAF enabling status. The value can be OPEN or CLOSE.

is_public

Boolean

Public or private zone.

true: public zone.

false: private zone.

remark

String

Website remarks.

name_server

Array of strings

Website server list.

extend_propertites

WebsiteExtendProperties object

Other attributes.

Table 76 WebsiteExtendProperties

Parameter

Type

Description

mac_addr

String

MAC address.

Table 77 OcaIp

Parameter

Type

Description

value

String

Resource value.

version

String

Resource type:

IPv4 or IPv6.

network

OcaIpNetwork object

Network information.

remark

String

Resource remarks.

name

String

Resource name. The default value is the resource value.

relative_value

String

Opposite value. For example, if the IP address is an IPv4 address, the value is ipv6.

server_room

String

Equipment rooms.

server_rack

String

Cabinet.

data_center

OcaIpDataCenter object

Data center.

mac_addr

String

MAC address.

important

String

Importance level. 0: Unimportant. 1: Important.

extend_propertites

OcaIpExtendProperties object

Other third-party attributes.

Table 78 OcaIpNetwork

Parameter

Type

Description

is_public

Boolean

Public or private zone.

true: public zone.

false: private zone.

partition

String

Network zone. The value can be OM, PSZ, or DMZ.

plane

String

Network plane (special code for on-premises scenarios).

vxlan_id

String

Virtual network ID.

Table 79 OcaIpDataCenter

Parameter

Type

Description

latitude

Float

Latitude.

longitude

Float

Longitude.

city_code

String

City code.

country_code

String

Country/Region code.

Table 80 OcaIpExtendProperties

Parameter

Type

Description

device

OcaIpDevice object

Device information.

system

OcaIpSystem object

System information.

services

Array of OcaIpService objects

Application information.

Table 81 OcaIpDevice

Parameter

Type

Description

type

String

Device type.

model

String

Device model.

vendor

OcaIpVendor object

Device vendor.

Table 82 OcaIpSystem

Parameter

Type

Description

family

String

System type.

name

String

System name.

version

String

System version.

vendor

OcaIpVendor object

System vendor.

Table 83 OcaIpService

Parameter

Type

Description

port

Integer

Port of the application.

protocol

String

Protocol.

name

String

Application name.

version

String

Application version.

vendor

OcaIpVendor object

Application vendor.

Table 84 OcaIpVendor

Parameter

Type

Description

name

String

Supplier name.

is_xc

Boolean

Whether the supplier is an in-house vendor.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Returned updated resource list.

Error Codes

See Error Codes.