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
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Tag.N.Key | BODY | string | No | FinanceDept | the 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.N | BODY | repeatlist | Yes | vpc-bp16qjewdsunr41m1**** | resource ID, n values range from 1 to 20. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Tag.N.Value | BODY | string | No | FinanceJoshua | the 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://. |
ResourceType | BODY | string | Yes | VPC | resource type definition, value: VPC:VPC instance. VSWITCH: switch instance. ROUTETABLE: routing table instance. EIP: Elastic public network IP instance. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID to which the resource belongs. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}
title: UnassociateNetworkAcl
sidebar_position: 3
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
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Resource.N.ResourceType | BODY | string | No | VSwitch | the type of associated resource. |
NetworkAclId | BODY | string | Yes | nacl-a2do9e413e0sp**** | ID of network ACL. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface. |
Resource.N.ResourceId | BODY | string | No | vsw-bp1de348lntdw**** | ID of the associated resource. |
ClientToken | BODY | string | No | 123e4567-e89b-12d3-a456-426655440000 | Ensure 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. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | AD024BAA-2D91-48FD-810B-8FB7489B6EE6 | request ID. |
Example
Successful Response example
{
"RequestId":"AD024BAA-2D91-48FD-810B-8FB7489B6EE6"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}