Bare Metal Solution API . projects . sshKeys

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, sshKeyId=None, x__xgafv=None)

Create a new SSH key registration in the specified project.

delete(name, x__xgafv=None)

Delete an SSH key registration in the specified project.

list(parent, pageSize=None, pageToken=None, x__xgafv=None)

List the public SSH keys registered for the specified project.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
create(parent, body=None, sshKeyId=None, x__xgafv=None)
Create a new SSH key registration in the specified project.

Args:
  parent: string, Required. The parent project containing the SSH keys. (required)
  body: object, The request body.
    The object takes the form of:

{ # A public SSH key registered in the project. Used primarily for the interactive serial console feature.
  "name": "A String", # Output only. The name of this SSH key.
  "publicKey": "A String", # The public SSH key.
}

  sshKeyId: string, Required. The ID to use for the key, which will become the final component of the key's resource name. This value should be match the regex: [a-zA-Z0-9@.\-_]{1,64}
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A public SSH key registered in the project. Used primarily for the interactive serial console feature.
  "name": "A String", # Output only. The name of this SSH key.
  "publicKey": "A String", # The public SSH key.
}
delete(name, x__xgafv=None)
Delete an SSH key registration in the specified project.

Args:
  name: string, Required. The name of the SSH key to delete. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
List the public SSH keys registered for the specified project.

Args:
  parent: string, Required. The parent project containing the SSH keys. (required)
  pageSize: integer, The maximum number of items to return.
  pageToken: string, The next_page_token value returned from a previous List request, if any.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListSSHKeys.
  "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list.
  "sshKeys": [ # The SSH keys registered in this project.
    { # A public SSH key registered in the project. Used primarily for the interactive serial console feature.
      "name": "A String", # Output only. The name of this SSH key.
      "publicKey": "A String", # The public SSH key.
    },
  ],
}
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.