An API Key provides access to the Rancher API if access control has been turned on. The access key and secret key pair are created per environment and can be used to directly call the API or used with rancher-compose.
Field | Type | Create | Update | Default | Notes |
---|---|---|---|---|---|
description | string | Optional | Yes | - | |
name | string | Optional | Yes | - | |
publicValue | string | Optional | - | - | The public value of the apiKey |
secretValue | password | Optional | - | - | The secret value of the apiKey |
Field | Type | Notes |
---|---|---|
data | map[json] | |
id | int | The unique identifier for the apiKey |
Please read more about the common resource fields. These fields are read only and applicable to almost every resource. We have segregated them from the list above.
CreatePOST: /v2-beta/projects/${PROJECT_ID}/apiKeys
DeleteDELETE: /v2-beta/projects/${PROJECT_ID}/apiKeys/${ID}
UpdatePUT: /v2-beta/projects/${PROJECT_ID}/apiKeys/${ID}
activate
POST: /v2-beta/projects/${PROJECT_ID}/apiKeys/${ID}?action=activate
deactivate
POST: /v2-beta/projects/${PROJECT_ID}/apiKeys/${ID}?action=deactivate