1. Packages
  2. Google Cloud Native
  3. API Docs
  4. oslogin
  5. oslogin/v1beta
  6. SshPublicKey

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.oslogin/v1beta.SshPublicKey

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Create an SSH public key Auto-naming is currently not supported for this resource.

    Create SshPublicKey Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SshPublicKey(name: string, args: SshPublicKeyArgs, opts?: CustomResourceOptions);
    @overload
    def SshPublicKey(resource_name: str,
                     args: SshPublicKeyArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def SshPublicKey(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     user_id: Optional[str] = None,
                     expiration_time_usec: Optional[str] = None,
                     key: Optional[str] = None)
    func NewSshPublicKey(ctx *Context, name string, args SshPublicKeyArgs, opts ...ResourceOption) (*SshPublicKey, error)
    public SshPublicKey(string name, SshPublicKeyArgs args, CustomResourceOptions? opts = null)
    public SshPublicKey(String name, SshPublicKeyArgs args)
    public SshPublicKey(String name, SshPublicKeyArgs args, CustomResourceOptions options)
    
    type: google-native:oslogin/v1beta:SshPublicKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SshPublicKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SshPublicKeyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SshPublicKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SshPublicKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SshPublicKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var examplesshPublicKeyResourceResourceFromOsloginv1beta = new GoogleNative.OSLogin.V1Beta.SshPublicKey("examplesshPublicKeyResourceResourceFromOsloginv1beta", new()
    {
        UserId = "string",
        ExpirationTimeUsec = "string",
        Key = "string",
    });
    
    example, err := osloginv1beta.NewSshPublicKey(ctx, "examplesshPublicKeyResourceResourceFromOsloginv1beta", &osloginv1beta.SshPublicKeyArgs{
    	UserId:             pulumi.String("string"),
    	ExpirationTimeUsec: pulumi.String("string"),
    	Key:                pulumi.String("string"),
    })
    
    var examplesshPublicKeyResourceResourceFromOsloginv1beta = new SshPublicKey("examplesshPublicKeyResourceResourceFromOsloginv1beta", SshPublicKeyArgs.builder()
        .userId("string")
        .expirationTimeUsec("string")
        .key("string")
        .build());
    
    examplessh_public_key_resource_resource_from_osloginv1beta = google_native.oslogin.v1beta.SshPublicKey("examplesshPublicKeyResourceResourceFromOsloginv1beta",
        user_id="string",
        expiration_time_usec="string",
        key="string")
    
    const examplesshPublicKeyResourceResourceFromOsloginv1beta = new google_native.oslogin.v1beta.SshPublicKey("examplesshPublicKeyResourceResourceFromOsloginv1beta", {
        userId: "string",
        expirationTimeUsec: "string",
        key: "string",
    });
    
    type: google-native:oslogin/v1beta:SshPublicKey
    properties:
        expirationTimeUsec: string
        key: string
        userId: string
    

    SshPublicKey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SshPublicKey resource accepts the following input properties:

    UserId string
    ExpirationTimeUsec string
    An expiration time in microseconds since epoch.
    Key string
    Public key text in SSH format, defined by RFC4253 section 6.6.
    UserId string
    ExpirationTimeUsec string
    An expiration time in microseconds since epoch.
    Key string
    Public key text in SSH format, defined by RFC4253 section 6.6.
    userId String
    expirationTimeUsec String
    An expiration time in microseconds since epoch.
    key String
    Public key text in SSH format, defined by RFC4253 section 6.6.
    userId string
    expirationTimeUsec string
    An expiration time in microseconds since epoch.
    key string
    Public key text in SSH format, defined by RFC4253 section 6.6.
    user_id str
    expiration_time_usec str
    An expiration time in microseconds since epoch.
    key str
    Public key text in SSH format, defined by RFC4253 section 6.6.
    userId String
    expirationTimeUsec String
    An expiration time in microseconds since epoch.
    key String
    Public key text in SSH format, defined by RFC4253 section 6.6.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SshPublicKey resource produces the following output properties:

    Fingerprint string
    The SHA-256 fingerprint of the SSH public key.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The canonical resource name.
    Fingerprint string
    The SHA-256 fingerprint of the SSH public key.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The canonical resource name.
    fingerprint String
    The SHA-256 fingerprint of the SSH public key.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The canonical resource name.
    fingerprint string
    The SHA-256 fingerprint of the SSH public key.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The canonical resource name.
    fingerprint str
    The SHA-256 fingerprint of the SSH public key.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The canonical resource name.
    fingerprint String
    The SHA-256 fingerprint of the SSH public key.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The canonical resource name.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi