Trusted Certificates APIs

Trusted Certificates APIs

APIs for managing Trusted Certificates

Table of Contents

1. Add trusted certificate to the SDDC Manager

1.1. Prerequisites

  • VCF environment.

1.2. Steps

  • Invoke the API.

cURL Request

$ curl 'https://sfo-vcf01.rainpole.io/v1/sddc-manager/trusted-certificates' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_OUTBOUND"
}'

$ curl 'https://sfo-vcf01.rainpole.io/v1/sddc-manager/trusted-certificates' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_INBOUND"
}'

HTTP Request

POST /v1/sddc-manager/trusted-certificates HTTP/1.1
Content-Type: application/json
Content-Length: 136
Host: sfo-vcf01.rainpole.io

{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_OUTBOUND"
}

POST /v1/sddc-manager/trusted-certificates HTTP/1.1
Content-Type: application/json
Content-Length: 135
Host: sfo-vcf01.rainpole.io

{
  "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----",
  "certificateUsageType" : "TRUSTED_FOR_INBOUND"
}

HTTP Response

HTTP/1.1 200 OK

HTTP/1.1 200 OK

Tip : Refer to: Add trusted certificate to the SDDC manager API

2. Get the trusted certificates from the SDDC manager

2.1. Prerequisites

  • VCF environment.

2.2. Steps

  • Invoke the API.

cURL Request

$ curl 'https://sfo-vcf01.rainpole.io/v1/sddc-manager/trusted-certificates' -i -X GET

HTTP Request

GET /v1/sddc-manager/trusted-certificates HTTP/1.1
Host: sfo-vcf01.rainpole.io

HTTP Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 152

{
  "elements" : [ {
    "alias" : "vcf_82:66:ea:5e:4c:...",
    "certificate" : "-----BEGIN CERTIFICATE-----\n ... \n-----END CERTIFICATE-----"
  } ]
}

Tip : Refer to: Get the trusted certificates from the SDDC manager API

3. Delete a trusted certificate from the SDDC manager

3.1. Prerequisites

  • VCF environment.

3.2. Steps

  • Invoke the API.

cURL Request

$ curl 'https://sfo-vcf01.rainpole.io/v1/sddc-manager/trusted-certificates/vcf_82:66:ea:5e:4c:...' -i -X DELETE

HTTP Request

DELETE /v1/sddc-manager/trusted-certificates/vcf_82:66:ea:5e:4c:... HTTP/1.1
Host: sfo-vcf01.rainpole.io

HTTP Response

HTTP/1.1 204 No Content

Tip : Refer to: Delete a trusted certificate from the SDDC manager API

Last updated 2023-05-21 23:30:49 PDT

Operations
POST
Add Trusted Certificate
Add a trusted certificate to the SDDC Manager
DELETE
Delete Trusted Certificate
Delete a trusted certificate from the SDDC Manager
GET
Get Trusted Certificates
Get the trusted certificates from the SDDC Manager