SSH Key Group

Create SSH Key Group

Changed on

Create an SSH Key Group for the current Tenant.

Org must have a Tenant entity. User must have authorization role with TENANT_ADMIN suffix.

post/v2/org/{org}/nico/sshkeygroup

Request

  • Base URL
    https://nico-rest-api.nico.svc.cluster.local
  • URL
    https://nico-rest-api.nico.svc.cluster.local/v2/org/{org}/nico/sshkeygroup
  • Auth
    HTTP bearer

Request body

namestring required

Name of the SSHKeyGroup

descriptionstring nullable

Description of the SSHKeyGroup

siteIdsstring[]

List of Site objects

sshKeyIdsstring[]

List of SSHKeyID objects

Example request

{
  "name": "reno-integration-sre",
  "description": "SRE access SSH keys for Reno Integration",
  "siteIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "sshKeyIds": [
    "ff06da79-707a-4069-8623-211d49ae96c8"
  ]
}

Response

Created

idstring uuid

Unique identifier for the SSH Key Group

namestring

Name of the SSH Key Group

descriptionstring nullable

Description for the SSH Key Group, optional

orgstring

Organization this SSH Key Group belongs to

tenantIdstring uuid

ID of the Tenane the SSH Key Group belongs to

versionstring nullable

Version of the SSH Key Group

status'Syncing' | 'Synced' | 'Error' | 'Deleting'

Status values for SSH Key Group objects

createdstring date-time

Date/time when the SSH key was created

updatedstring date-time

Date/time when the SSH key was last updated

Example response

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "reno-integration-sre",
  "description": "SRE access SSH keys for Reno Integration",
  "org": "wdksahew1rqf",
  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
  "version": "fbc692b61ffef6fbfc38a3833f6b7e7ae508da75",
  "siteAssociations": [
    {
      "site": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "sjc-central-1",
        "infrastructureProviderId": "5f2cc306-76e9-4fca-9186-950c9ef9a74e",
        "isSerialConsoleEnabled": true,
        "isOnline": true,
        "capabilities": {
          "nativeNetworking": false,
          "networkSecurityGroup": true,
          "nvLinkPartition": false,
          "flow": false,
          "imageBasedOperatingSystem": false,
          "vpcSlaac": false
        },
        "status": "Registered"
      },
      "status": "Syncing",
      "version": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
      "created": "2019-08-24T14:15:22Z",
      "updated": "2019-08-24T14:15:22Z"
    }
  ],
  "sshKeys": [
    {
      "id": "ff06da79-707a-4069-8623-211d49ae96c8",
      "name": "sre-ssh-reno",
      "org": "wdksahew1rqf",
      "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
      "fingerprint": "CaK2yoj5fDOhf1swM2kFyjQrd3bwZfDYlWnVjBHgveQ",
      "created": "2019-08-24T14:15:22Z",
      "updated": "2019-08-24T14:15:22Z"
    }
  ],
  "status": "Syncing",
  "statusHistory": [
    {
      "status": "Syncing",
      "message": "Group is being synced to Sites",
      "created": "2019-08-24T14:15:22Z",
      "updated": "2019-08-24T14:15:22Z"
    }
  ],
  "created": "2019-08-24T14:15:22Z",
  "updated": "2019-08-24T14:15:22Z"
}

Changes

    • info

      the response optional property //// became read-only for the status

    • info

      removed the nico enum value from the response property for the response status

    • info

      removed the nico enum value from the response property for the response status