You can call this operation to query whether Security Center has the permission to access a cloud resource.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeUserBaselineAuthorization |
The operation that you want to perform. Set the value to DescribeUserBaselineAuthorization. |
SourceIp | String | No | 1.2.3.4 |
The source IP address of the request. |
Lang | String | No | zh |
The language of the request and response. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0AF20EB0-EBBC-4B94-9B84-F3BAFAC53EDE |
The ID of the request. |
UserBaselineAuthorization | Struct |
The information about whether Security Center has the permission to run configuration checks on a cloud resource. |
|
Status | Integer | 1 |
Indicates whether Security Center is authorized to run configuration checks on a cloud resource.
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeUserBaselineAuthorization
&<Common request parameters>
Sample success responses
XML
format
<DescribeUserBaselineAuthorizationResponse>
<UserBaselineAuthorization>
<Status>1</Status>
</UserBaselineAuthorization>
<requestId>0AF20EB0-EBBC-4B94-9B84-F3BAFAC53EDE</requestId>
</DescribeUserBaselineAuthorizationResponse>
JSON
format
{
"UserBaselineAuthorization": {
"Status": 1
},
"requestId": "0AF20EB0-EBBC-4B94-9B84-F3BAFAC53EDE"
}
Error codes
For a list of error codes, visit the API Error Center.