Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.oslogin/v1alpha.SshPublicKey
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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/v1alpha: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 google_nativeSshPublicKeyResource = new GoogleNative.OSLogin.V1Alpha.SshPublicKey("google-nativeSshPublicKeyResource", new()
{
UserId = "string",
ExpirationTimeUsec = "string",
Key = "string",
});
example, err := osloginv1alpha.NewSshPublicKey(ctx, "google-nativeSshPublicKeyResource", &osloginv1alpha.SshPublicKeyArgs{
UserId: pulumi.String("string"),
ExpirationTimeUsec: pulumi.String("string"),
Key: pulumi.String("string"),
})
var google_nativeSshPublicKeyResource = new SshPublicKey("google-nativeSshPublicKeyResource", SshPublicKeyArgs.builder()
.userId("string")
.expirationTimeUsec("string")
.key("string")
.build());
google_native_ssh_public_key_resource = google_native.oslogin.v1alpha.SshPublicKey("google-nativeSshPublicKeyResource",
user_id="string",
expiration_time_usec="string",
key="string")
const google_nativeSshPublicKeyResource = new google_native.oslogin.v1alpha.SshPublicKey("google-nativeSshPublicKeyResource", {
userId: "string",
expirationTimeUsec: "string",
key: "string",
});
type: google-native:oslogin/v1alpha: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:
- 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 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 Cloud Native is in preview. Google Cloud Classic is fully supported.