SSL certificate operations#
This section describes the SSL certificate operation of the Rackspace CDN API.
Create an SSL certificate#
POST /v1.0/{project_id}/ssl_certificate
This operation creates an SSL certificate.
The following table shows the possible response codes for this operation.
Response Code |
Name |
Description |
---|---|---|
202 |
Accepted |
The request has been fulfilled, but does not return a representation (that is, the response is empty). |
Request#
The following table shows the URI parameters for the request.
Name |
Type |
Description |
---|---|---|
{project_id} |
String |
The project ID for the user. If you do not set the |
The following table shows the body parameters for the request.
Name |
Type |
Description |
---|---|---|
cert_type |
String (Required) |
Specifies the type of SSL certificate. Valid values are |
domain_name |
String (Required) |
Specifies a string representing the type of the SSL
certificate, such as |
flavor_id |
String (Required) |
Specifies the CDN provider flavor ID to use. For a list of flavors, see the
operation to list the available flavors. The minimum length for |
project_id |
String (Required) |
The project ID for the user. |
Example: Create an SSL certificate HTTP and JSON request
POST /v1.0/110011/ssl_certificate HTTP/1.1
Host: global.cdn.api.rackspacecloud.com
X-Auth-Token: 0f6e9f63600142f0a970911583522217
Accept: application/json
Content-type: application/json
{
"cert_type": "san",
"domain_name": "www.example.com",
"flavor_id": "cdn",
"project_id": "12345"
}
Response#
This operation does not return a response body.
Example: Create an SSL certificate HTTP response
HTTP/1.1 202 Accepted
Content-Type: application/json
Delete an SSL certificate#
DELETE /v1.0/{project_id}/ssl_certificate/{domain_name}
This operation deletes an SSL certificate.
WARNING: If you delete a working SSL certificate, you will break your CDN service.
The following table shows the possible response codes for this operation.
Response Code |
Name |
Description |
---|---|---|
202 |
Accepted |
The request has been fulfilled, but does not return a representation (that is, the response is empty). |
Request#
The following table shows the URI parameters for the request.
Name |
Type |
Description |
---|---|---|
{project_id} |
String |
The project ID for the user. If you do not set
the |
{domain_name} |
String |
Specifies a string representing the type of the
SSL certificate, such as |
This operation does not accept a request body.
Example: Delete an SSL certificate HTTP request
DELETE /v1.0/110011/ssl_certificate/{domain_name} HTTP/1.1
Host: global.cdn.api.rackspacecloud.com
X-Auth-Token: 0f6e9f63600142f0a970911583522217
Accept: application/json
Content-type: application/json
Response#
This operation does not return a response body.
Example: Delete an SSL certificate HTTP response
HTTP/1.1 202 Accepted