Creates a command that is used to install the Security Center agent.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:AddInstallCode | create | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
GroupId | long | No | The ID of the asset group to which you want to add the asset. Note
You can call the DescribeAllGroups operation to query the IDs of asset groups.
| 8076980 |
Os | string | No | The operating system of the asset. Default value: linux. Valid values:
| linux |
ExpiredDate | long | No | The validity period of the installation command. The value is a 13-digit timestamp. Note
The installation command is valid only within the validity period. An expired installation command cannot be used to install the Security Center agent.
| 1680257463853 |
VendorName | string | No | The name of the service provider for the asset. Default value: ALIYUN. Note
You can call the DescribeVendorList operation to query the names of service providers.
| ALIYUN |
OnlyImage | boolean | No | Specifies whether to create an image. Default value: false. Valid values:
| false |
ProxyCluster | string | No | The name of the proxy cluster. | proxy_test |
PrivateLinkId | long | No | The ID of the PrivateLink endpoint. | 72845 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0B48AB3C-84FC-424D-A01D-B9270EF46038"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-15 | The request parameters of the API has changed | View Change Details |
2023-05-16 | The request parameters of the API has changed | View Change Details |
2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |