Queries the information about the assets that are added to a baseline check policy.

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 DescribeStrategyTarget

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

SourceIp String No 1.2.X.X

The source IP address of the request.

Type String No hc_strategy

The type of the information that you want to query. Set the value to hc_strategy, which indicates that baseline check policies are queried.

Config String Yes null

The ID of the baseline check policy.

Response parameters

Parameter Type Example Description
RequestId String 001BAB34-D70A-54B0-B1D7-91B76DCDD8E8

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

StrategyTargets Array of StrategyTarget

The information about the assets that are added to the baseline check policy.

BindUuidCount Integer 85

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

Flag String add

Indicates whether the baseline check policy takes effect on the asset group. Valid values:

  • add: yes
  • del: no
Target String 9165712

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

TargetType String groupId

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

  • groupId: The assets are added based on the ID of the asset group.
  • uuid: The assets are added based on the UUIDs of the assets.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeStrategyTarget
&SourceIp=1.2.X.X
&Type=hc_strategy
&Config={"strategyId":8167126}
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeStrategyTargetResponse>
    <RequestId>001BAB34-D70A-54B0-B1D7-91B76DCDD8E8</RequestId>
    <StrategyTargets>
        <BindUuidCount>85</BindUuidCount>
        <Flag>add</Flag>
        <Target>9165712</Target>
        <TargetType>groupId</TargetType>
    </StrategyTargets>
</DescribeStrategyTargetResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

For a list of error codes, visit the API Error Center.