All Products
Search
Document Center

Security Center:AddInstallCode

Last Updated:Dec 17, 2024

Creates a command that is used to install the Security Center agent.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:AddInstallCodecreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
GroupIdlongNo

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
OsstringNo

The operating system of the asset. Default value: linux. Valid values:

  • linux
  • windows
linux
ExpiredDatelongNo

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
VendorNamestringNo

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
OnlyImagebooleanNo

Specifies whether to create an image. Default value: false. Valid values:

  • false: does not create an image.
  • true: creates an image.
false
ProxyClusterstringNo

The name of the proxy cluster.

proxy_test
PrivateLinkIdlongNo

The ID of the PrivateLink endpoint.

72845

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

0B48AB3C-84FC-424D-A01D-B9270EF46038

Examples

Sample success responses

JSONformat

{
  "RequestId": "0B48AB3C-84FC-424D-A01D-B9270EF46038"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-11-15The request parameters of the API has changedView Change Details
2023-05-16The request parameters of the API has changedView Change Details
2022-08-01The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-08-01The internal configuration of the API is changed, but the call is not affectedView Change Details