Skip to main content
POST
/
api
/
v2
/
sshcertificateauthorities
Create SSH certificate authority
curl --request POST \
  --url https://api.example.com/api/v2/sshcertificateauthorities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {
    "name": "ssh-ca-name",
    "description": "A verbose description",
    "tags": [
      {
        "name": "cluster-id",
        "value": "9361402c-f998-49cc-ab21-9bb99afcfde8"
      }
    ]
  },
  "spec": {
    "organizationId": "161b9d5a-701d-4fea-848d-0e345edf16e9",
    "projectId": "f113be96-4dd2-4c14-9c0e-e96c500f21e0",
    "publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBuildOnlyTrustAnchor comment"
  }
}
'
{
  "metadata": {
    "id": "a64f9269-36e0-4312-b8d1-52d93d569b7b",
    "name": "undefined",
    "organizationId": "9a8c6370-4065-4d4a-9da0-7678df40cd9d",
    "projectId": "e36c058a-8eba-4f5b-91f4-f6ffb983795c",
    "creationTime": "2024-05-31T14:11:00Z",
    "createdBy": "john.doe@acme.com",
    "provisioningStatus": "provisioned",
    "healthStatus": "healthy"
  },
  "spec": {
    "publicKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBuildOnlyTrustAnchor comment"
  }
}

Authorizations

Authorization
string
header
required

Operation requires OAuth 2.0 bearer token authentication.

Body

application/json

A request for an SSH certificate authority.

An SSH certificate authority creation request.

metadata
object
required

Metadata required for all API resource reads and writes.

spec
object
required

An SSH certificate authority creation specification.

Response

An SSH certificate authority.

An SSH certificate authority.

metadata
object
required

Metadata required by project scoped resource reads.

spec
object
required

An OpenSSH user certificate authority trust anchor.