UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/process_ssl_pending_queue
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Market/process_ssl_pending_queue
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
Market \
process_ssl_pending_queue{ "apiversion": 3, "func": "process_ssl_pending_queue", "module": "Market", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
The access token for the session to the cPanel Market provider.
A JSON-encoded string that contains the details of the certificate.
Note:
To request multiple certificates, duplicate or increment the parameter name. For example, to request three certificates, use the certificate parameter multiple times or use the certificate-1, certificate-2, and certificate-3 parameters.
An array of strings or array of objects containing the certificate's subject names:
For HTTP-based DCV only:
Use an array of strings that contains dNSName and the domain.
For example:
[["dNSName","example.com"],["dNSName","example.org"]]
DNS-based DCV or HTTP-based DCV:
Use an array of objects that consits of:
type:dNSNamename— The domain name.dcv_method— Either thednsorhttpvalue for for DNS-based or HTTP-based Domain Control Validation (DCV).
For example:
[{type:“dNSName”,name:“text.example.com”,dcv_method:“dns”},{type:“dNSName”,name:“text.example.com”,dcv_method:“http”}]
Note:
- Custom provider modules that include DNS-based DCV requests must use the array of objects format, not the array of strings format.
- This function does not automatically include the corresponding
www.subdomain for each domain that you declare in this parameter. - If you wish to order the
www.subdomain for a domain, you must explicitly declare it in an additional array or object within thesubject_namesparameter.
An array of strings or array of objects containing the certificate's subject names:
For HTTP-based DCV only:
Use an array of strings that contains dNSName and the domain.
For example:
[["dNSName","example.com"],["dNSName","example.org"]]
DNS-based DCV or HTTP-based DCV:
Use an array of objects that consits of:
type:dNSNamename— The domain name.dcv_method— Either thednsorhttpvalue for for DNS-based or HTTP-based Domain Control Validation (DCV).
For example:
[{type:“dNSName”,name:“text.example.com”,dcv_method:“dns”},{type:“dNSName”,name:“text.example.com”,dcv_method:“http”}]
Note:
- Custom provider modules that include DNS-based DCV requests must use the array of objects format, not the array of strings format.
- This function does not automatically include the corresponding
www.subdomain for each domain that you declare in this parameter. - If you wish to order the
www.subdomain for a domain, you must explicitly declare it in an additional array or object within thesubject_namesparameter.
The period of time the certificate will remain valid. This array consists of a number value and string that represents a unit of time (for example, year).
An object containing the required information for an EV or OV certificate. This information depends on the provider of the certificate.
Note:
The function returns this object for OV or EV certificate requests.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Market/request_ssl_certificates
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Market/request_ssl_certificates
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output-jsonpretty --user=username Market request_ssl_certificates access_token='725431a1-d5bc-11e5-a28b-8b0e09a93f05' certificate='{"price":"6","product_id":"143","subject_names":[{"dNSName":"example.com"},{"dNSName":"example.org"}],"validity_period":["1, \"year\""],"vhost_names":["example.com"]}' provider='cPStore'{ "apiversion": 3, "func": "request_ssl_certificates", "module": "Market", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }