class ProjectsLocationsSshKeys extends Resource (View source)

The "sshKeys" collection of methods.

Typical usage is:

 $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
 $sshKeys = $baremetalsolutionService->projects_locations_sshKeys;

Methods

create(string $parent, SSHKey $postBody, array $optParams = [])

Register a public SSH key in the specified project for use with the interactive serial console feature. (sshKeys.create)

delete(string $name, array $optParams = [])

Deletes a public SSH key registered in the specified project.

listProjectsLocationsSshKeys(string $parent, array $optParams = [])

Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.

Details

SSHKey create(string $parent, SSHKey $postBody, array $optParams = [])

Register a public SSH key in the specified project for use with the interactive serial console feature. (sshKeys.create)

Parameters

string $parent

Required. The parent containing the SSH keys.

SSHKey $postBody
array $optParams

Optional parameters.

Return Value

SSHKey

Exceptions

Exception

BaremetalsolutionEmpty delete(string $name, array $optParams = [])

Deletes a public SSH key registered in the specified project.

(sshKeys.delete)

Parameters

string $name

Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

array $optParams

Optional parameters.

Return Value

BaremetalsolutionEmpty

Exceptions

Exception

ListSSHKeysResponse listProjectsLocationsSshKeys(string $parent, array $optParams = [])

Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.

(sshKeys.listProjectsLocationsSshKeys)

Parameters

string $parent

Required. The parent containing the SSH keys. Currently, the only valid value for the location is "global".

array $optParams

Optional parameters.

Return Value

ListSSHKeysResponse

Exceptions

Exception