ssh_keys
Creates, updates, deletes, gets or lists a ssh_keys
resource.
Overview
Name | ssh_keys |
Type | Resource |
Id | google.baremetalsolution.ssh_keys |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of this SSH key. Currently, the only valid value for the location is "global". |
publicKey | string | The public SSH key. This must be in OpenSSH .authorized_keys format. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | locationsId, projectsId | Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature. |
create | INSERT | locationsId, projectsId | Register a public SSH key in the specified project for use with the interactive serial console feature. |
delete | DELETE | locationsId, projectsId, sshKeysId | Deletes a public SSH key registered in the specified project. |
SELECT
examples
Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.
SELECT
name,
publicKey
FROM google.baremetalsolution.ssh_keys
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new ssh_keys
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.baremetalsolution.ssh_keys (
locationsId,
projectsId,
publicKey
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ publicKey }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: publicKey
value: string
DELETE
example
Deletes the specified ssh_keys
resource.
/*+ delete */
DELETE FROM google.baremetalsolution.ssh_keys
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND sshKeysId = '{{ sshKeysId }}';