CreateKubeconfig

post

/20180222/clusters/{cluster_id}/kubeconfig/content

Create the Kubeconfig YAML for a cluster.

Request

Supported Media Types
Path Parameters
Header Parameters
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
The details of the cluster kubeconfig to create.
Root Schema : CreateClusterKubeconfigContentDetails
Type: object
The properties that define a request to create a cluster kubeconfig.
Show Source
  • Allowed Values: [ "LEGACY_KUBERNETES", "PUBLIC_ENDPOINT", "PRIVATE_ENDPOINT", "VCN_HOSTNAME" ]
    The endpoint to target. A cluster may have multiple endpoints exposed but the kubeconfig can only target one at a time.
    Example: PUBLIC_ENDPOINT
  • Deprecated. This field is no longer used.
    Example: oracle.doceng.json.BetterJsonNull@54ea832e
  • Default Value: 2.0.0
    The version of the kubeconfig token. Supported value 2.0.0
    Example: 2.0.0
Back to Top

Response

Supported Media Types

200 Response

The output binary file is a standard KubeConfig file. External Reference Documentation, https://github.com/kubernetes/kubernetes/blob/release-1.1/docs/user-guide/kubeconfig-file.md
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : schema
Type: string(binary)

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

409 Response

Conflict
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

Default Response

An error has occurred.
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
Back to Top