All Products
Search
Document Center

Microservices Engine:ListSSLCert

Last Updated:Aug 12, 2024

Obtains a list of gateway certificates.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
mse:ListSSLCertget
  • Gateway
    acs:mse:{#regionId}:{#accountId}:instance/{#GatewayUniqueId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
GatewayUniqueIdstringYes

The unique ID of the gateway.

gw-3f97e2989c344f35ab3fd62b19f1****
AcceptLanguagestringNo

The language of the response. Valid values:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
object

The data structure.

RequestIdstring

The ID of the request.

CAA9A229-141D-5FBA-AC5C-516C02026A11
HttpStatusCodeinteger

The HTTP status code returned.

200
Messagestring

The error message returned.

You are not authorized to perform this operation.
Codeinteger

The status code returned. A value of 200 indicates that the request is successful.

200
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
Dataarray<object>

The returned data.

object

The data structure.

CertIdentifierstring

The ID of the certificate.

1234
CertNamestring

The name of the certificate.

test.com
CommonNamestring

The domain name with which the certificate is associated.

*.test.com
Sansstring

The SSL certificate.

SSL
BeforeDatestring

The time when the certificate took effect. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

2031-03-30 02:35:12
AfterDatestring

The time when the certificate expires. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

2021-04-01 02:35:12
Algorithmstring

The algorithm.

test
Issuerstring

The issuer of the certificate.

test
GmtBeforestring

The time when the certificate took effect. This value is a GMT timestamp.

2031-03-30 02:35:12
GmtAfterstring

The time when the certificate expires. This value is a GMT timestamp.

2021-04-01 02:35:12

Examples

Sample success responses

JSONformat

{
  "RequestId": "CAA9A229-141D-5FBA-AC5C-516C02026A11",
  "HttpStatusCode": 200,
  "Message": "You are not authorized to perform this operation.",
  "Code": 200,
  "Success": true,
  "Data": [
    {
      "CertIdentifier": "1234",
      "CertName": "test.com",
      "CommonName": "*.test.com",
      "Sans": "SSL",
      "BeforeDate": "2031-03-30 02:35:12",
      "AfterDate": " 2021-04-01 02:35:12",
      "Algorithm": "test",
      "Issuer": "test",
      "GmtBefore": "2031-03-30 02:35:12",
      "GmtAfter": "2021-04-01 02:35:12"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalRequestInvalid request:%sInvalid request: %s
400InvalidParameterParameter error:%sRequest parameter error: %s
403NoPermissionYou are not authorized to perform this operation:%sYou do not have the permission to use this interface:%s
404NotFoundNot found:%sThe resource does not exist:%s
500InternalErrorConsole error. Try again later:%sConsole error. Try again later: %s

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

Change history

Change timeSummary of changesOperation
2024-01-18The request parameters of the API has changedView Change Details