All Products
Search
Document Center

Security Center:GetCanTrySas

Last Updated:Mar 20, 2026

Checks whether the current user is qualified for the trial use of Security Center.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FromEcsbooleanNo

Specifies whether the request is redirected from the Elastic Compute Service (ECS) console. Valid values:

  • true
  • false
true
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Dataobject

The data returned.

CanTryinteger

Indicates whether the user is qualified for the trial use. Valid values:

  • true
  • false
true
TryTypeinteger

The trial type. Valid values:

  • 0: trial prohibited
  • 1: first trial
  • 2: second trial
1
CanTryVersionsarray

The editions that are allowed for the trial use.

CanTryVersioninteger

The edition. Valid values:

  • 3: Enterprise
  • 7: Ultimate
7
RequestIdstring

The request ID.

8BAA57***B7073A5C1

Examples

Sample success responses

JSONformat

{
  "Data": {
    "CanTry": 0,
    "TryType": 1,
    "CanTryVersions": [
      7
    ]
  },
  "RequestId": "8BAA57***B7073A5C1"
}

Error codes

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

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

Change history

Change timeSummary of changesOperation
No change history