You can call this operation to query whether Security Center has the permission to access a cloud resource.

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 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:

  • zh: Chinese
  • en: English

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.

  • 0: permission denied. Security Center does not have the permission to run configuration checks on the cloud resource.
  • 1: permission granted. Security Center has the permission to run configuration checks on the 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.