scaleway.getIamSshKey
Explore with Pulumi AI
Use this data source to get SSH key information based on its ID or name.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var myKey = Scaleway.GetIamSshKey.Invoke(new()
{
SshKeyId = "11111111-1111-1111-1111-111111111111",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.LookupIamSshKey(ctx, &scaleway.LookupIamSshKeyArgs{
SshKeyId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetIamSshKeyArgs;
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) {
final var myKey = ScalewayFunctions.getIamSshKey(GetIamSshKeyArgs.builder()
.sshKeyId("11111111-1111-1111-1111-111111111111")
.build());
}
}
import pulumi
import pulumi_scaleway as scaleway
my_key = scaleway.get_iam_ssh_key(ssh_key_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myKey = scaleway.getIamSshKey({
sshKeyId: "11111111-1111-1111-1111-111111111111",
});
variables:
myKey:
fn::invoke:
Function: scaleway:getIamSshKey
Arguments:
sshKeyId: 11111111-1111-1111-1111-111111111111
Using getIamSshKey
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIamSshKey(args: GetIamSshKeyArgs, opts?: InvokeOptions): Promise<GetIamSshKeyResult>
function getIamSshKeyOutput(args: GetIamSshKeyOutputArgs, opts?: InvokeOptions): Output<GetIamSshKeyResult>
def get_iam_ssh_key(name: Optional[str] = None,
ssh_key_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIamSshKeyResult
def get_iam_ssh_key_output(name: Optional[pulumi.Input[str]] = None,
ssh_key_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamSshKeyResult]
func LookupIamSshKey(ctx *Context, args *LookupIamSshKeyArgs, opts ...InvokeOption) (*LookupIamSshKeyResult, error)
func LookupIamSshKeyOutput(ctx *Context, args *LookupIamSshKeyOutputArgs, opts ...InvokeOption) LookupIamSshKeyResultOutput
> Note: This function is named LookupIamSshKey
in the Go SDK.
public static class GetIamSshKey
{
public static Task<GetIamSshKeyResult> InvokeAsync(GetIamSshKeyArgs args, InvokeOptions? opts = null)
public static Output<GetIamSshKeyResult> Invoke(GetIamSshKeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamSshKeyResult> getIamSshKey(GetIamSshKeyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getIamSshKey:getIamSshKey
arguments:
# arguments dictionary
The following arguments are supported:
- name str
The SSH key name. Only one of
name
andssh_key_id
should be specified.- ssh_
key_ strid The SSH key id. Only one of
name
andssh_key_id
should be specified.
getIamSshKey Result
The following output properties are available:
- Created
At string The date and time of the creation of the SSH key.
- Disabled bool
The SSH key status.
- Fingerprint string
- Id string
The provider-assigned unique ID for this managed resource.
- Organization
Id string The ID of the organization the SSH key is associated with.
- Project
Id string - Public
Key string The SSH public key string
- Updated
At string The date and time of the last update of the SSH key.
- Name string
- Ssh
Key stringId
- Created
At string The date and time of the creation of the SSH key.
- Disabled bool
The SSH key status.
- Fingerprint string
- Id string
The provider-assigned unique ID for this managed resource.
- Organization
Id string The ID of the organization the SSH key is associated with.
- Project
Id string - Public
Key string The SSH public key string
- Updated
At string The date and time of the last update of the SSH key.
- Name string
- Ssh
Key stringId
- created
At String The date and time of the creation of the SSH key.
- disabled Boolean
The SSH key status.
- fingerprint String
- id String
The provider-assigned unique ID for this managed resource.
- organization
Id String The ID of the organization the SSH key is associated with.
- project
Id String - public
Key String The SSH public key string
- updated
At String The date and time of the last update of the SSH key.
- name String
- ssh
Key StringId
- created
At string The date and time of the creation of the SSH key.
- disabled boolean
The SSH key status.
- fingerprint string
- id string
The provider-assigned unique ID for this managed resource.
- organization
Id string The ID of the organization the SSH key is associated with.
- project
Id string - public
Key string The SSH public key string
- updated
At string The date and time of the last update of the SSH key.
- name string
- ssh
Key stringId
- created_
at str The date and time of the creation of the SSH key.
- disabled bool
The SSH key status.
- fingerprint str
- id str
The provider-assigned unique ID for this managed resource.
- organization_
id str The ID of the organization the SSH key is associated with.
- project_
id str - public_
key str The SSH public key string
- updated_
at str The date and time of the last update of the SSH key.
- name str
- ssh_
key_ strid
- created
At String The date and time of the creation of the SSH key.
- disabled Boolean
The SSH key status.
- fingerprint String
- id String
The provider-assigned unique ID for this managed resource.
- organization
Id String The ID of the organization the SSH key is associated with.
- project
Id String - public
Key String The SSH public key string
- updated
At String The date and time of the last update of the SSH key.
- name String
- ssh
Key StringId
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.