VCFA REST API endpoints are not included in the VCF 9 OpenAPI spec
search cancel

VCFA REST API endpoints are not included in the VCF 9 OpenAPI spec

book

Article ID: 436633

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

The VCFA APIs are not available in the Developer Portal – Download VCF 9.0 OpenAPI Specifications along with other products.

 

Environment

VCF Automation 9.0.x

Resolution

It is possible to get the OpenAPI spec from the tenant kubernetes context.

  1. First log in to a Tenant Organization using the VCF CLI
  2. Then, using the Kubernetes CLI on this client, fetch the OpenAPI spec with this command: 

$ kubectl get --raw /openapi/v3 | jq '.paths | with_entries(select(.key | contains("vmware.com")))'

{
  "apis/authorization.cci.vmware.com/v1alpha1": {
    "serverRelativeURL": "/openapi/v3/apis/authorization.cci.vmware.com/v1alpha1"
  },
  "apis/infrastructure.cci.vmware.com/v1alpha1": {
    "serverRelativeURL": "/openapi/v3/apis/infrastructure.cci.vmware.com/v1alpha1"
  },
  "apis/infrastructure.cci.vmware.com/v1alpha2": {
    "serverRelativeURL": "/openapi/v3/apis/infrastructure.cci.vmware.com/v1alpha2"
  },
  "apis/project.cci.vmware.com/v1alpha2": {
    "serverRelativeURL": "/openapi/v3/apis/project.cci.vmware.com/v1alpha2"
  },
  "apis/topology.cci.vmware.com/v1alpha1": {
    "serverRelativeURL": "/openapi/v3/apis/topology.cci.vmware.com/v1alpha1"
  },
  "apis/topology.cci.vmware.com/v1alpha2": {
    "serverRelativeURL": "/openapi/v3/apis/topology.cci.vmware.com/v1alpha2"
  },
  "apis/vpc.nsx.vmware.com": {
    "serverRelativeURL": "/openapi/v3/apis/vpc.nsx.vmware.com"
  },
  "apis/vpc.nsx.vmware.com/v1alpha1": {
    "serverRelativeURL": "/openapi/v3/apis/vpc.nsx.vmware.com/v1alpha1"
  }

 

The VCFA REST APIs are due to be added to the wider VCF 9 OpenAPI spec at a later date.