Querying Supported Features in a Site
Function
This API is used to query supported features of a site.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v1/pca/config/console
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. For details, see [Obtaining a User Token] (https://support.huaweicloud.com/en-us/api-iam/iam_30_0001.html). |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
is_support_eps |
Boolean |
Whether enterprise projects are supported. |
|
is_support_sm2 |
Boolean |
Whether the SM2 algorithm is supported. |
|
is_support_dhsm |
Boolean |
Whether the Dedicated HSM cluster is supported. |
|
dhsm_regions |
Array of strings |
Regions supported by the Dedicated HSM cluster. Minimum: 1 Maximum: 64 |
|
is_support_yearly_monthly_ca |
Boolean |
Whether yearly/monthly CAs are supported. |
|
is_support_iam5 |
Boolean |
Whether IAM5 authentication is supported. |
|
is_support_ocsp |
Boolean |
Whether OCSP queries are supported. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code Minimum: 3 Maximum: 36 |
|
error_msg |
String |
Error message Minimum: 0 Maximum: 1024 |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code Minimum: 3 Maximum: 36 |
|
error_msg |
String |
Error message Minimum: 0 Maximum: 1024 |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code Minimum: 3 Maximum: 36 |
|
error_msg |
String |
Error message Minimum: 0 Maximum: 1024 |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code Minimum: 3 Maximum: 36 |
|
error_msg |
String |
Error message Minimum: 0 Maximum: 1024 |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code Minimum: 3 Maximum: 36 |
|
error_msg |
String |
Error message Minimum: 0 Maximum: 1024 |
Example Requests
When you use this API to query the supported features of a site, a token is required in the X-Auth-Token field in the request header, and the token must have the permission to access the API.
GET https://ccm.cn-north-4.myhuaweicloud.com/v1/ccm/config/console
Example Responses
Status code: 200
Request succeeded.
{
"is_support_eps" : true,
"is_support_sm2" : true,
"is_support_dhsm" : false,
"dhsm_regions" : [ "cn-north-4" ],
"is_support_yearly_monthly_ca" : true,
"is_support_iam5" : true,
"is_support_ocsp" : true
}
Status code: 400
Invalid request parameter.
{
"error_code" : "PCA.XXX",
"error_msg" : "XXX"
}
Status code: 401
Token required for the requested page.
{
"error_code" : "PCA.XXX",
"error_msg" : "XXX"
}
Status code: 403
The authentication failed.
{
"error_code" : "PCA.XXX",
"error_msg" : "XXX"
}
Status code: 404
No resources available or found.
{
"error_code" : "PCA.XXX",
"error_msg" : "XXX"
}
Status code: 500
Internal server error.
{
"error_code" : "PCA.XXX",
"error_msg" : "XXX"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Request succeeded. |
|
400 |
Invalid request parameter. |
|
401 |
Token required for the requested page. |
|
403 |
The authentication failed. |
|
404 |
No resources available or found. |
|
500 |
Internal server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.