Displaying Public API examples to get/delete trusted certificates in SDDC Manager.
search cancel

Displaying Public API examples to get/delete trusted certificates in SDDC Manager.

book

Article ID: 312001

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

In Public API documentation, the curl examples for (getting trusted certificates and deleting trusted certificates) are not displayed. These help users in using the APIs. Ref:

Symptoms:
cURL Request
Unresolved directive in usecases/get_trustedCertificates.adoc - include::../applianceUtilities/get_trusted_certificates_v1/curl-request.adoc[]

Environment

Vmware Cloud Foundation 4.5.1

Cause

The cause is in the Public API doc the examples are not rendered.

Resolution

Public API cURL Request example to get trusted certificates from the SDDC Manager. 

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-----"
  } ]
}


Public API cURL Request example to delete a trusted certificates from the SDDC Manager.

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 


Workaround:
Currently there is no workaround.