All Products
Search
Document Center

Security Center:DescribeStrategyTarget

Last Updated:Feb 20, 2024

Queries the information about the assets to which a baseline check policy is applied.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:DescribeStrategyTargetRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

1.2.X.X
TypestringYes

The type of the policy. Set the value to hc_strategy, which indicates baseline check policies.

hc_strategy
ConfigstringYes

The ID of the baseline check policy.

{"strategyId":8167126}

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

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

001BAB34-D70A-54B0-B1D7-91B76DCDD8E8
StrategyTargetsobject []

The information about the assets to which the baseline check policy is applied.

BindUuidCountinteger

The number of the assets that belong to the asset group.

85
Flagstring

Indicates whether the baseline check policy is applied to the asset group. Valid values:

  • add: The baseline check policy is applied to the asset group.
  • del: the baseline check policy is not applied to the asset group.
add
Targetstring

The ID of the asset group to which the assets belong or the UUID of the asset.

9165712
TargetTypestring

The method that is used to add the assets to the baseline check policy. Valid values:

  • groupId: the ID of the asset group
  • uuid: the UUID of the asset
groupId

Examples

Sample success responses

JSONformat

{
  "RequestId": "001BAB34-D70A-54B0-B1D7-91B76DCDD8E8",
  "StrategyTargets": [
    {
      "BindUuidCount": 85,
      "Flag": "add",
      "Target": "9165712",
      "TargetType": "groupId"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400ConsoleErrorThe error message is %s %s.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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