Class CreateKeyOptions

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class CreateKeyOptions
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    The createKey options.
    • Method Detail

      • publicKey

        public String publicKey()
        Gets the publicKey. A unique public SSH key to import, in OpenSSH format (consisting of three space-separated fields: the algorithm name, base64-encoded key, and a comment). The algorithm and comment fields may be omitted, as only the key field is imported. Keys of type `rsa` may be 2048 or 4096 bits in length, however 4096 is recommended. Keys of type `ed25519` are 256 bits in length.
        Returns:
        the publicKey
      • name

        public String name()
        Gets the name. The name for this key. The name must not be used by another key in the region. If unspecified, the name will be a hyphenated list of randomly-selected words.
        Returns:
        the name
      • resourceGroup

        public ResourceGroupIdentity resourceGroup()
        Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.
        Returns:
        the resourceGroup
      • type

        public String type()
        Gets the type. The crypto-system for this key.
        Returns:
        the type