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 X- Project-Id header in the request, use project_id in the URI. For example: GET https://global.cdn.api.rackspacecloud.com/v1.0/{project_id}

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 san and custom. However, custom is not yet implemented.

domain_name

String (Required)

Specifies a string representing the type of the SSL certificate, such as www.example.com.

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 flavor_id is 3. The maximum length is 256.

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 X-Project-Id header in the request, use project_id in the URI. For example: GET https://global.cdn.api.rackspacecloud.com/v1.0/ {project_id}

{domain_name}

String

Specifies a string representing the type of the SSL certificate, such as www.example.com.

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