ListUserCertificateOrder

Updated at:

Queries the list of user certificates or orders.

Operation description

This operation is typically used to query the list of user certificates or orders. If OrderType is set to CERT or UPLOAD, the certificate list is queried. If OrderType is set to CPACK or BUY, the order list is queried.

QPS limits

The QPS limit for a single user is 10 calls per second. If this limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable frequency.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cert:ListUserCertificateOrder

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Keyword

string

No

The keyword for fuzzy search, which matches domain names or corresponding resource IDs.

cert-instanceId

Status

string

No

The order status. Valid values:

  • PAYED: Pending application. This value is valid when OrderType is set to CPACK or BUY.

  • CHECKING: Under review. This value is valid when OrderType is set to CPACK or BUY.

  • CHECKED_FAIL: Review failed. This value is valid when OrderType is set to CPACK or BUY.

  • ISSUED: Issued.

  • WILLEXPIRED: Expiring soon.

  • EXPIRED: Expired.

  • NOTACTIVATED: Not activated. This value is valid when OrderType is set to CPACK or BUY.

  • REVOKED: Revoked. This value is valid when OrderType is set to CPACK or BUY.

If OrderType is set to CERT or UPLOAD and Status is left empty, valid certificates, including issued and expiring certificates, are returned by default. If OrderType is set to CPACK or BUY and Status is left empty, all orders are returned by default.

ISSUED

OrderType

string

No

The resource type. Default value: CPACK. Valid values:

  • CPACK: Virtual resource order. Only orders generated from quotas are returned.

  • BUY: Sales order. Only orders generated from sales are returned. You can ignore this type in most cases.

  • UPLOAD: Uploaded certificate. Only uploaded certificates are returned.

  • CERT: Certificate. Both issued and uploaded certificates are returned.

CPACK

CurrentPage

integer

No

The current page number for pagination.

1

ShowSize

integer

No

The number of entries to return on each page. Default value: 50.

10

ResourceGroupId

string

No

The resource group ID. You can obtain the ID by calling the ListResources operation.

rg-ae******4wia

Response elements

Element

Type

Description

Example

object

The response for the certificate and order list.

ShowSize

integer

The number of entries returned per page.

10

CurrentPage

integer

The number of entries returned per page.

1

TotalCount

integer

The total number of queried entries.

1

CertificateOrderList

array<object>

The list of certificates and orders.

{"CertificateOrderList": [{"Status": "PAYED","ProductName": "Professional Wildcard OV SSL","InstanceId": "cert-instanceId","ProductCode": "globalsign-xxxx","SourceType": "buy","WildDomainCount": 1,"CertType": "OV","PartnerOrderId": "","OrderId": 3451111,"Algorithm": "RSA","RootBrand": "GlobalSign","AliyunOrderId": 21xxxxxx40655,"DomainType": "WILDCARD","TrusteeStatus": "trustee","Domain": "","BuyDate": 1632649385000,"DomainCount": 1}]}

object

The certificate and order information.

Algorithm

string

The algorithm. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

RSA

AliyunOrderId

integer

The Alibaba Cloud order ID. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

234567

BuyDate

integer

The purchase time. Unit: milliseconds. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

1634283958000

CertEndTime

integer

The certificate expiration time. Unit: milliseconds. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

1665819958000

CertStartTime

integer

The certificate start time. Unit: milliseconds. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

1665819958000

CertType

string

The certificate type. This parameter is returned when the input parameter OrderType is set to CPACK or BUY. Valid values:

  • DV: DV certificate.

  • EV: EV certificate.

  • OV: OV certificate.

  • FREE: Personal test certificate (supported only on the China site).

FREE

Domain

string

The domain name. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

aliyundoc.com

DomainCount

integer

The total number of purchased domain names. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

1

DomainType

string

The domain name type. This parameter is returned when the input parameter OrderType is set to CPACK or BUY. Valid values:

  • ONE: Single domain name.

  • MULTIPLE: Multiple domain names.

  • WILDCARD: Single wildcard domain name.

  • M_WILDCARD: Multiple wildcard domain names.

  • MIX: Mixed domain names.

ONE

InstanceId

string

The resource ID.

cas-instanceId

OrderId

integer

The order ID. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

2345687

PartnerOrderId

string

The third-party CA order ID. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

ca-123456

ProductCode

string

The order specification ID. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

bykj123456

ProductName

string

The order specification name. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

CFCA

RootBrand

string

The brand, such as WoSign, CFCA, DigiCert, and vTrus. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

CFCA

SourceType

string

The order type. This parameter is returned when the input parameter OrderType is set to CPACK or BUY. Valid values:

  • cpack: Virtual resource order.

  • buy: Sales order.

buy

Status

string

The order or certificate status. This parameter is returned when the input parameter OrderType is set to CPACK or BUY. Valid values:

  • PAYED: Pending application.

  • CHECKING: Under review.

  • CHECKED_FAIL: Review failed.

  • ISSUED: Issued.

  • WILLEXPIRED: Expiring soon.

  • EXPIRED: Expired.

  • NOTACTIVATED: Not activated.

  • REVOKED: Revoked.

PAYED

TrusteeStatus

string

The hosting status. This parameter is returned when the input parameter OrderType is set to CPACK or BUY. Valid values:

  • unTrustee: Not hosted.

  • trustee: Hosted.

unTrustee

WildDomainCount

integer

The number of purchased wildcard domain names. This parameter is returned when the input parameter OrderType is set to CPACK or BUY.

0

CertificateId

integer

The certificate ID. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

896521

Name

string

The certificate name. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

cert-name

CommonName

string

The primary domain name of the certificate. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

aliyun.com

Fingerprint

string

The certificate fingerprint. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

CC6B3696E7C7CA715BD26E28E45FF3E3DF435C03

Sha2

string

The SHA-2 value of the certificate. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

56B4DED2243A81DD909D7C39824FFE4DDBD87F91BFA46CD333FF212FE0E7CB11

SerialNo

string

The certificate serial number. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

040a6e493cffdda6d744acf99b6576cf

Issuer

string

The certificate issuer. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

MyIssuer

OrgName

string

The organization name in the certificate. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

Alibaba Cloud

Province

string

The province or autonomous region. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

Zhejiang

City

string

The city. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

Hangzhou

Country

string

The country code. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

CN

Sans

string

All domain names bound to the certificate. Multiple domain names are separated by commas (,). This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

aliyun.com

Expired

boolean

Indicates whether the certificate has expired. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

true

Upload

boolean

Indicates whether the certificate is an uploaded certificate. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

false

StartDate

string

The certificate start time. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD. The date format is YYYY-MM-DD.

2021-11-16

EndDate

string

The certificate end time. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD. The date format is YYYY-MM-DD.

2022-11-17

ResourceGroupId

string

The resource group ID. This parameter is returned when the input parameter OrderType is set to CERT or UPLOAD.

rg-ae******4wia

RequestId

string

The request ID. This ID is generated by Alibaba Cloud for the request and can be used to troubleshoot and locate issues.

15C66C7B-671A-4297-9187-2C4477247A74

Examples

Success response

JSON format

{
  "ShowSize": 10,
  "CurrentPage": 1,
  "TotalCount": 1,
  "CertificateOrderList": [
    {
      "Algorithm": "RSA",
      "AliyunOrderId": 234567,
      "BuyDate": 1634283958000,
      "CertEndTime": 1665819958000,
      "CertStartTime": 1665819958000,
      "CertType": "FREE",
      "Domain": "aliyundoc.com",
      "DomainCount": 1,
      "DomainType": "ONE",
      "InstanceId": "cas-instanceId",
      "OrderId": 2345687,
      "PartnerOrderId": "ca-123456",
      "ProductCode": "bykj123456",
      "ProductName": "CFCA",
      "RootBrand": "CFCA",
      "SourceType": "buy",
      "Status": "PAYED",
      "TrusteeStatus": "unTrustee",
      "WildDomainCount": 0,
      "CertificateId": 896521,
      "Name": "cert-name",
      "CommonName": "aliyun.com",
      "Fingerprint": "CC6B3696E7C7CA715BD26E28E45FF3E3DF435C03",
      "Sha2": "56B4DED2243A81DD909D7C39824FFE4DDBD87F91BFA46CD333FF212FE0E7CB11",
      "SerialNo": "040a6e493cffdda6d744acf99b6576cf",
      "Issuer": "MyIssuer",
      "OrgName": "阿里云",
      "Province": "浙江省",
      "City": "杭州市",
      "Country": "CN",
      "Sans": "aliyun.com",
      "Expired": true,
      "Upload": false,
      "StartDate": "2021-11-16",
      "EndDate": "2022-11-17",
      "ResourceGroupId": "rg-ae******4wia"
    }
  ],
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.