ibm.IsSshKey
Explore with Pulumi AI
Create, update, or delete an SSH key. The SSH key is used to access a Generation 2 virtual server instance. For more information, about SSH key, see managing SSH Keys.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = new ibm.IsSshKey("example", {
publicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR",
type: "rsa",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.IsSshKey("example",
public_key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR",
type="rsa")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIsSshKey(ctx, "example", &ibm.IsSshKeyArgs{
PublicKey: pulumi.String("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR"),
Type: pulumi.String("rsa"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = new Ibm.IsSshKey("example", new()
{
PublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR",
Type = "rsa",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsSshKey;
import com.pulumi.ibm.IsSshKeyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new IsSshKey("example", IsSshKeyArgs.builder()
.publicKey("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR")
.type("rsa")
.build());
}
}
resources:
example:
type: ibm:IsSshKey
properties:
publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR
type: rsa
Create IsSshKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsSshKey(name: string, args: IsSshKeyArgs, opts?: CustomResourceOptions);
@overload
def IsSshKey(resource_name: str,
args: IsSshKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsSshKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
public_key: Optional[str] = None,
access_tags: Optional[Sequence[str]] = None,
is_ssh_key_id: Optional[str] = None,
name: Optional[str] = None,
resource_group: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None)
func NewIsSshKey(ctx *Context, name string, args IsSshKeyArgs, opts ...ResourceOption) (*IsSshKey, error)
public IsSshKey(string name, IsSshKeyArgs args, CustomResourceOptions? opts = null)
public IsSshKey(String name, IsSshKeyArgs args)
public IsSshKey(String name, IsSshKeyArgs args, CustomResourceOptions options)
type: ibm:IsSshKey
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 IsSshKeyArgs
- 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 IsSshKeyArgs
- 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 IsSshKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsSshKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsSshKeyArgs
- 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 isSshKeyResource = new Ibm.IsSshKey("isSshKeyResource", new()
{
PublicKey = "string",
AccessTags = new[]
{
"string",
},
IsSshKeyId = "string",
Name = "string",
ResourceGroup = "string",
Tags = new[]
{
"string",
},
Type = "string",
});
example, err := ibm.NewIsSshKey(ctx, "isSshKeyResource", &ibm.IsSshKeyArgs{
PublicKey: pulumi.String("string"),
AccessTags: pulumi.StringArray{
pulumi.String("string"),
},
IsSshKeyId: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var isSshKeyResource = new IsSshKey("isSshKeyResource", IsSshKeyArgs.builder()
.publicKey("string")
.accessTags("string")
.isSshKeyId("string")
.name("string")
.resourceGroup("string")
.tags("string")
.type("string")
.build());
is_ssh_key_resource = ibm.IsSshKey("isSshKeyResource",
public_key="string",
access_tags=["string"],
is_ssh_key_id="string",
name="string",
resource_group="string",
tags=["string"],
type="string")
const isSshKeyResource = new ibm.IsSshKey("isSshKeyResource", {
publicKey: "string",
accessTags: ["string"],
isSshKeyId: "string",
name: "string",
resourceGroup: "string",
tags: ["string"],
type: "string",
});
type: ibm:IsSshKey
properties:
accessTags:
- string
isSshKeyId: string
name: string
publicKey: string
resourceGroup: string
tags:
- string
type: string
IsSshKey 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 IsSshKey resource accepts the following input properties:
- Public
Key string - The public SSH key.
- List<string>
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Is
Ssh stringKey Id - (String) The ID of the SSH key.
- Name string
- The user-defined name for this key.
- Resource
Group string - The resource group ID where the SSH is created.
- List<string>
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- Type string
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- Public
Key string - The public SSH key.
- []string
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Is
Ssh stringKey Id - (String) The ID of the SSH key.
- Name string
- The user-defined name for this key.
- Resource
Group string - The resource group ID where the SSH is created.
- []string
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- Type string
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- public
Key String - The public SSH key.
- List<String>
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is
Ssh StringKey Id - (String) The ID of the SSH key.
- name String
- The user-defined name for this key.
- resource
Group String - The resource group ID where the SSH is created.
- List<String>
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type String
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- public
Key string - The public SSH key.
- string[]
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is
Ssh stringKey Id - (String) The ID of the SSH key.
- name string
- The user-defined name for this key.
- resource
Group string - The resource group ID where the SSH is created.
- string[]
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type string
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- public_
key str - The public SSH key.
- Sequence[str]
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is_
ssh_ strkey_ id - (String) The ID of the SSH key.
- name str
- The user-defined name for this key.
- resource_
group str - The resource group ID where the SSH is created.
- Sequence[str]
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type str
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- public
Key String - The public SSH key.
- List<String>
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- is
Ssh StringKey Id - (String) The ID of the SSH key.
- name String
- The user-defined name for this key.
- resource
Group String - The resource group ID where the SSH is created.
- List<String>
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type String
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsSshKey resource produces the following output properties:
- Created
At string - (String) The date and time that the key was created.
- Crn string
- (String) The CRN for this key.
- Fingerprint string
- (String) The SHA256 fingerprint of the public key.
- Href string
- (String) The URL for this key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Length double
- (String) The length of this key.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- Created
At string - (String) The date and time that the key was created.
- Crn string
- (String) The CRN for this key.
- Fingerprint string
- (String) The SHA256 fingerprint of the public key.
- Href string
- (String) The URL for this key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Length float64
- (String) The length of this key.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- created
At String - (String) The date and time that the key was created.
- crn String
- (String) The CRN for this key.
- fingerprint String
- (String) The SHA256 fingerprint of the public key.
- href String
- (String) The URL for this key.
- id String
- The provider-assigned unique ID for this managed resource.
- length Double
- (String) The length of this key.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- created
At string - (String) The date and time that the key was created.
- crn string
- (String) The CRN for this key.
- fingerprint string
- (String) The SHA256 fingerprint of the public key.
- href string
- (String) The URL for this key.
- id string
- The provider-assigned unique ID for this managed resource.
- length number
- (String) The length of this key.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- created_
at str - (String) The date and time that the key was created.
- crn str
- (String) The CRN for this key.
- fingerprint str
- (String) The SHA256 fingerprint of the public key.
- href str
- (String) The URL for this key.
- id str
- The provider-assigned unique ID for this managed resource.
- length float
- (String) The length of this key.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
crn str - The crn of the resource
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- created
At String - (String) The date and time that the key was created.
- crn String
- (String) The CRN for this key.
- fingerprint String
- (String) The SHA256 fingerprint of the public key.
- href String
- (String) The URL for this key.
- id String
- The provider-assigned unique ID for this managed resource.
- length Number
- (String) The length of this key.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
Look up Existing IsSshKey Resource
Get an existing IsSshKey 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>, state?: IsSshKeyState, opts?: CustomResourceOptions): IsSshKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_tags: Optional[Sequence[str]] = None,
created_at: Optional[str] = None,
crn: Optional[str] = None,
fingerprint: Optional[str] = None,
href: Optional[str] = None,
is_ssh_key_id: Optional[str] = None,
length: Optional[float] = None,
name: Optional[str] = None,
public_key: Optional[str] = None,
resource_controller_url: Optional[str] = None,
resource_crn: Optional[str] = None,
resource_group: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None) -> IsSshKey
func GetIsSshKey(ctx *Context, name string, id IDInput, state *IsSshKeyState, opts ...ResourceOption) (*IsSshKey, error)
public static IsSshKey Get(string name, Input<string> id, IsSshKeyState? state, CustomResourceOptions? opts = null)
public static IsSshKey get(String name, Output<String> id, IsSshKeyState state, CustomResourceOptions options)
resources: _: type: ibm:IsSshKey get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- List<string>
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Created
At string - (String) The date and time that the key was created.
- Crn string
- (String) The CRN for this key.
- Fingerprint string
- (String) The SHA256 fingerprint of the public key.
- Href string
- (String) The URL for this key.
- Is
Ssh stringKey Id - (String) The ID of the SSH key.
- Length double
- (String) The length of this key.
- Name string
- The user-defined name for this key.
- Public
Key string - The public SSH key.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group ID where the SSH is created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- List<string>
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- Type string
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- []string
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- Created
At string - (String) The date and time that the key was created.
- Crn string
- (String) The CRN for this key.
- Fingerprint string
- (String) The SHA256 fingerprint of the public key.
- Href string
- (String) The URL for this key.
- Is
Ssh stringKey Id - (String) The ID of the SSH key.
- Length float64
- (String) The length of this key.
- Name string
- The user-defined name for this key.
- Public
Key string - The public SSH key.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- Resource
Crn string - The crn of the resource
- Resource
Group string - The resource group ID where the SSH is created.
- Resource
Group stringName - The resource group name in which resource is provisioned
- Resource
Name string - The name of the resource
- []string
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- Type string
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- List<String>
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- created
At String - (String) The date and time that the key was created.
- crn String
- (String) The CRN for this key.
- fingerprint String
- (String) The SHA256 fingerprint of the public key.
- href String
- (String) The URL for this key.
- is
Ssh StringKey Id - (String) The ID of the SSH key.
- length Double
- (String) The length of this key.
- name String
- The user-defined name for this key.
- public
Key String - The public SSH key.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group ID where the SSH is created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- List<String>
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type String
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- string[]
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- created
At string - (String) The date and time that the key was created.
- crn string
- (String) The CRN for this key.
- fingerprint string
- (String) The SHA256 fingerprint of the public key.
- href string
- (String) The URL for this key.
- is
Ssh stringKey Id - (String) The ID of the SSH key.
- length number
- (String) The length of this key.
- name string
- The user-defined name for this key.
- public
Key string - The public SSH key.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn string - The crn of the resource
- resource
Group string - The resource group ID where the SSH is created.
- resource
Group stringName - The resource group name in which resource is provisioned
- resource
Name string - The name of the resource
- string[]
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type string
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- Sequence[str]
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- created_
at str - (String) The date and time that the key was created.
- crn str
- (String) The CRN for this key.
- fingerprint str
- (String) The SHA256 fingerprint of the public key.
- href str
- (String) The URL for this key.
- is_
ssh_ strkey_ id - (String) The ID of the SSH key.
- length float
- (String) The length of this key.
- name str
- The user-defined name for this key.
- public_
key str - The public SSH key.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource_
crn str - The crn of the resource
- resource_
group str - The resource group ID where the SSH is created.
- resource_
group_ strname - The resource group name in which resource is provisioned
- resource_
name str - The name of the resource
- Sequence[str]
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type str
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
- List<String>
A list of access management tags to attach to the ssh key.
Note: • You can attach only those access tags that already exists. • For more information, about creating access tags, see working with tags. • You must have the access listed in the Granting users access to tag resources for
access_tags
•access_tags
must be in the formatkey:value
.- created
At String - (String) The date and time that the key was created.
- crn String
- (String) The CRN for this key.
- fingerprint String
- (String) The SHA256 fingerprint of the public key.
- href String
- (String) The URL for this key.
- is
Ssh StringKey Id - (String) The ID of the SSH key.
- length Number
- (String) The length of this key.
- name String
- The user-defined name for this key.
- public
Key String - The public SSH key.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about this instance
- resource
Crn String - The crn of the resource
- resource
Group String - The resource group ID where the SSH is created.
- resource
Group StringName - The resource group name in which resource is provisioned
- resource
Name String - The name of the resource
- List<String>
- A list of tags that you want to add to your SSH key. Tags can help you find the SSH key more easily later.
- type String
The crypto system used by this key. Default value is 'rsa. Allowed values are : [
ed25519
,rsa
].Note: •
ed25519
can only be used if the operating system supports this key type. •ed25519
can't be used with Windows or VMware images.
Import
The ibm_is_ssh_key
resource can be imported by using the SSH key ID.
Syntax
$ pulumi import ibm:index/isSshKey:IsSshKey example <ssh_key_ID>
Example
$ pulumi import ibm:index/isSshKey:IsSshKey example d7bec597-4726-451f-8a63-e62e6f19c32c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.