All Products
Search
Document Center

Security Center:DescribeStrategyTarget

Last Updated:Jun 08, 2023

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

Authorization information

There is currently no authorization information disclosed in the API.

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

request result.

RequestIdstring

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

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

An array consisting of 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: yes
  • del: no
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.