Skip to main content

TagResources

Description

call TagResources uniformly create and bind tags for the specified resources.

Request Method

POST

Request Path

/apsara/route/Vpc/TagResources

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Tag.N.KeyBODYstringNoFinanceDeptthe tag key of the resource. Value range of n:1~20. Once the value is passed in, an empty string is not allowed. It can be up to 64 characters in length and must start with a letter or Chinese. It can contain numbers, half-width periods (.), underscores (_), and dashes (-), cannot use aliyun and acs: start and cannot contain http:// or https://.
ResourceId.NBODYrepeatlistYesvpc-bp16qjewdsunr41m1****resource ID, n values range from 1 to 20.
regionIdBODYstringYesNo sample value for this parameter.region id
Tag.N.ValueBODYstringNoFinanceJoshuathe tag value of the resource. Value range of n:1~20. Once the value is passed in, it can be an empty string. Supports up to 128 characters, which must start with a letter or Chinese, and can contain numbers, half-width periods (.), underscores (_), and dashes (-), cannot use aliyun and acs: start and cannot contain http:// or https://.
ResourceTypeBODYstringYesVPCresource type definition, value: VPC:VPC instance. VSWITCH: switch instance. ROUTETABLE: routing table instance. EIP: Elastic public network IP instance.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the resource belongs.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: UnassociateNetworkAcl

UnassociateNetworkAcl

Description

call the UnassociateNetworkAcl interface to unbind the network ACL from the switch.

Request Method

POST

Request Path

/apsara/route/Vpc/UnassociateNetworkAcl

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Resource.N.ResourceTypeBODYstringNoVSwitchthe type of associated resource.
NetworkAclIdBODYstringYesnacl-a2do9e413e0sp****ID of network ACL.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface.
Resource.N.ResourceIdBODYstringNovsw-bp1de348lntdw****ID of the associated resource.
ClientTokenBODYstringNo123e4567-e89b-12d3-a456-426655440000Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstringAD024BAA-2D91-48FD-810B-8FB7489B6EE6request ID.

Example

Successful Response example

{
"RequestId":"AD024BAA-2D91-48FD-810B-8FB7489B6EE6"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}