You can call this operation to add assets.

You can call this operation to add the asset list and the tag list.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes AddAssets

The operation that you want to perform. Set the value to AddAssets.

Assets.N RepeatList Yes ['a.aliyun.com', 'b.aliyun.com']

Specifies asset N to be added.

SourceIp String No 1.2.3.4

The source IP address of the request.

Tags.N RepeatList No ['tag1', 'tag2']

Specifies tag N. The assets under tag N will be added.

Response parameters

Parameter Type Example Description
RequestId String 0C992F5D-8568-41B4-9685-05C0DAEAE9D7

The ID of the request.

Success Boolean true

Indicates whether assets were added.

Examples

Sample requests


http(s)://[Endpoint]//? Action=AddAssets
&Assets.1='a.aliyun.com'
&Assets.2='b.aliyun.com'
&Tags.1='tag1'
&Tags.2='tag2'
&SourceIp=
&<Common request parameters>

Sample success responses

XML format

<AddAssets>
      <code>200</code>
      <requestId>0C992F5D-8568-41B4-9685-05C0DAEAE9D7</requestId>
      <success>true</success>
</AddAssets>

JSON format

{
	"requestId":"0C992F5D-8568-41B4-9685-05C0DAEAE9D7",
	"code":"200",
	"success":true
}

Error codes

For more information about error codes, visit API Error Center.