This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
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/v1:SshPublicKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "google-native_oslogin_v1_ssh_public_key" "name" {
# resource properties
}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 sshPublicKeyResource = new GoogleNative.OSLogin.V1.SshPublicKey("sshPublicKeyResource", new()
{
UserId = "string",
ExpirationTimeUsec = "string",
Key = "string",
});
example, err := oslogin.NewSshPublicKey(ctx, "sshPublicKeyResource", &oslogin.SshPublicKeyArgs{
UserId: pulumi.String("string"),
ExpirationTimeUsec: pulumi.String("string"),
Key: pulumi.String("string"),
})
resource "google-native_oslogin_v1_ssh_public_key" "sshPublicKeyResource" {
lifecycle {
create_before_destroy = true
}
user_id = "string"
expiration_time_usec = "string"
key = "string"
}
var sshPublicKeyResource = new com.pulumi.googlenative.oslogin_v1.SshPublicKey("sshPublicKeyResource", com.pulumi.googlenative.oslogin_v1.SshPublicKeyArgs.builder()
.userId("string")
.expirationTimeUsec("string")
.key("string")
.build());
ssh_public_key_resource = google_native.oslogin.v1.SshPublicKey("sshPublicKeyResource",
user_id="string",
expiration_time_usec="string",
key="string")
const sshPublicKeyResource = new google_native.oslogin.v1.SshPublicKey("sshPublicKeyResource", {
userId: "string",
expirationTimeUsec: "string",
key: "string",
});
type: google-native:oslogin/v1: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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SshPublicKey resource accepts the following input properties:
- User
Id string - Expiration
Time stringUsec - An expiration time in microseconds since epoch.
- Key string
- Public key text in SSH format, defined by RFC4253 section 6.6.
- User
Id string - Expiration
Time stringUsec - An expiration time in microseconds since epoch.
- Key string
- Public key text in SSH format, defined by RFC4253 section 6.6.
- user_
id string - expiration_
time_ stringusec - An expiration time in microseconds since epoch.
- key string
- Public key text in SSH format, defined by RFC4253 section 6.6.
- user
Id String - expiration
Time StringUsec - An expiration time in microseconds since epoch.
- key String
- Public key text in SSH format, defined by RFC4253 section 6.6.
- user
Id string - expiration
Time stringUsec - 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_ strusec - An expiration time in microseconds since epoch.
- key str
- Public key text in SSH format, defined by RFC4253 section 6.6.
- user
Id String - expiration
Time StringUsec - 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 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.
Look up Existing SshPublicKey Resource
Get an existing SshPublicKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): SshPublicKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> SshPublicKeyfunc GetSshPublicKey(ctx *Context, name string, id IDInput, state *SshPublicKeyState, opts ...ResourceOption) (*SshPublicKey, error)public static SshPublicKey Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static SshPublicKey get(String name, Output<String> id, CustomResourceOptions options)resources: existingSshPublicKey: type: google-native:oslogin/v1:SshPublicKey get: id: ${id}import {
to = google-native_oslogin_v1_ssh_public_key.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state SshPublicKeyState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.
published on Wednesday, Nov 29, 2023 by Pulumi