All Products
Search
Document Center

Security Center:GetCheckSale

Last Updated:Feb 20, 2024

Queries the sales information about the configuration assessment feature, including the purchased quota and the consumed quota.

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region in which the Security Center instance is deployed. Valid values:

  • cn-hangzhou: inside China
  • Global ap-southeast-1: outside China
cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

F5CF78A7-30AA-59DB-847F-13EE3AE7****
CheckSaleobject

The sales information about the configuration assessment quota.

PurchaseCountlong

The purchased quota.

1000
ConsumeCountlong

The consumed quota.

500
LoyalUserboolean

Indicates whether the user is an existing user and whether the user uses the configuration assessment feature before the feature is released for sale on July 07, 2023. Valid values:

  • true: existing user
  • false: new user
true
SaleUserTypeinteger

The type of the user. Valid values:

  • 1: a user who can use all check items.
  • 2: an user who can only use the check items before the release of the feature on July 07, 2023. This type of users must upgrade Security Center before the users can use all check items.
  • 3: a new user who cannot use the configuration assessment feature. This type of users must make a purchase before the users can use the feature.
1

Examples

Sample success responses

JSONformat

{
  "RequestId": "F5CF78A7-30AA-59DB-847F-13EE3AE7****",
  "CheckSale": {
    "PurchaseCount": 1000,
    "ConsumeCount": 500,
    "LoyalUser": true,
    "SaleUserType": 1
  }
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionno permission-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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