1. Packages
  2. Scaleway
  3. API Docs
  4. AccountSshKey
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

scaleway.AccountSshKey

Explore with Pulumi AI

scaleway logo
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

    Manages user SSH keys to access servers provisioned on Scaleway.

    Important: The resource scaleway.AccountSshKey has been deprecated and will no longer be supported. Instead, use scaleway.IamSshKey.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.AccountSshKey("main", new()
        {
            PublicKey = "<YOUR-PUBLIC-SSH-KEY>",
        });
    
    });
    
    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.NewAccountSshKey(ctx, "main", &scaleway.AccountSshKeyArgs{
    			PublicKey: pulumi.String("<YOUR-PUBLIC-SSH-KEY>"),
    		})
    		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.AccountSshKey;
    import com.pulumi.scaleway.AccountSshKeyArgs;
    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 main = new AccountSshKey("main", AccountSshKeyArgs.builder()        
                .publicKey("<YOUR-PUBLIC-SSH-KEY>")
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_scaleway as scaleway
    
    main = scaleway.AccountSshKey("main", public_key="<YOUR-PUBLIC-SSH-KEY>")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@lbrlabs/pulumi-scaleway";
    
    const main = new scaleway.AccountSshKey("main", {publicKey: "<YOUR-PUBLIC-SSH-KEY>"});
    
    resources:
      main:
        type: scaleway:AccountSshKey
        properties:
          publicKey: <YOUR-PUBLIC-SSH-KEY>
    

    Create AccountSshKey Resource

    new AccountSshKey(name: string, args: AccountSshKeyArgs, opts?: CustomResourceOptions);
    @overload
    def AccountSshKey(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      disabled: Optional[bool] = None,
                      name: Optional[str] = None,
                      project_id: Optional[str] = None,
                      public_key: Optional[str] = None)
    @overload
    def AccountSshKey(resource_name: str,
                      args: AccountSshKeyArgs,
                      opts: Optional[ResourceOptions] = None)
    func NewAccountSshKey(ctx *Context, name string, args AccountSshKeyArgs, opts ...ResourceOption) (*AccountSshKey, error)
    public AccountSshKey(string name, AccountSshKeyArgs args, CustomResourceOptions? opts = null)
    public AccountSshKey(String name, AccountSshKeyArgs args)
    public AccountSshKey(String name, AccountSshKeyArgs args, CustomResourceOptions options)
    
    type: scaleway:AccountSshKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AccountSshKeyArgs
    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 AccountSshKeyArgs
    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 AccountSshKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountSshKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountSshKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AccountSshKey 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 AccountSshKey resource accepts the following input properties:

    PublicKey string

    The public SSH key to be added.

    Disabled bool

    The SSH key status

    Name string

    The name of the SSH key.

    ProjectId string

    project_id) The ID of the project the SSH key is associated with.

    PublicKey string

    The public SSH key to be added.

    Disabled bool

    The SSH key status

    Name string

    The name of the SSH key.

    ProjectId string

    project_id) The ID of the project the SSH key is associated with.

    publicKey String

    The public SSH key to be added.

    disabled Boolean

    The SSH key status

    name String

    The name of the SSH key.

    projectId String

    project_id) The ID of the project the SSH key is associated with.

    publicKey string

    The public SSH key to be added.

    disabled boolean

    The SSH key status

    name string

    The name of the SSH key.

    projectId string

    project_id) The ID of the project the SSH key is associated with.

    public_key str

    The public SSH key to be added.

    disabled bool

    The SSH key status

    name str

    The name of the SSH key.

    project_id str

    project_id) The ID of the project the SSH key is associated with.

    publicKey String

    The public SSH key to be added.

    disabled Boolean

    The SSH key status

    name String

    The name of the SSH key.

    projectId String

    project_id) The ID of the project the SSH key is associated with.

    Outputs

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

    CreatedAt string

    The date and time of the creation of the iam SSH Key

    Fingerprint string

    The fingerprint of the iam SSH key

    Id string

    The provider-assigned unique ID for this managed resource.

    OrganizationId string

    The organization ID the SSH key is associated with.

    UpdatedAt string

    The date and time of the last update of the iam SSH Key

    CreatedAt string

    The date and time of the creation of the iam SSH Key

    Fingerprint string

    The fingerprint of the iam SSH key

    Id string

    The provider-assigned unique ID for this managed resource.

    OrganizationId string

    The organization ID the SSH key is associated with.

    UpdatedAt string

    The date and time of the last update of the iam SSH Key

    createdAt String

    The date and time of the creation of the iam SSH Key

    fingerprint String

    The fingerprint of the iam SSH key

    id String

    The provider-assigned unique ID for this managed resource.

    organizationId String

    The organization ID the SSH key is associated with.

    updatedAt String

    The date and time of the last update of the iam SSH Key

    createdAt string

    The date and time of the creation of the iam SSH Key

    fingerprint string

    The fingerprint of the iam SSH key

    id string

    The provider-assigned unique ID for this managed resource.

    organizationId string

    The organization ID the SSH key is associated with.

    updatedAt string

    The date and time of the last update of the iam SSH Key

    created_at str

    The date and time of the creation of the iam SSH Key

    fingerprint str

    The fingerprint of the iam SSH key

    id str

    The provider-assigned unique ID for this managed resource.

    organization_id str

    The organization ID the SSH key is associated with.

    updated_at str

    The date and time of the last update of the iam SSH Key

    createdAt String

    The date and time of the creation of the iam SSH Key

    fingerprint String

    The fingerprint of the iam SSH key

    id String

    The provider-assigned unique ID for this managed resource.

    organizationId String

    The organization ID the SSH key is associated with.

    updatedAt String

    The date and time of the last update of the iam SSH Key

    Look up Existing AccountSshKey Resource

    Get an existing AccountSshKey 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?: AccountSshKeyState, opts?: CustomResourceOptions): AccountSshKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            disabled: Optional[bool] = None,
            fingerprint: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            project_id: Optional[str] = None,
            public_key: Optional[str] = None,
            updated_at: Optional[str] = None) -> AccountSshKey
    func GetAccountSshKey(ctx *Context, name string, id IDInput, state *AccountSshKeyState, opts ...ResourceOption) (*AccountSshKey, error)
    public static AccountSshKey Get(string name, Input<string> id, AccountSshKeyState? state, CustomResourceOptions? opts = null)
    public static AccountSshKey get(String name, Output<String> id, AccountSshKeyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CreatedAt string

    The date and time of the creation of the iam SSH Key

    Disabled bool

    The SSH key status

    Fingerprint string

    The fingerprint of the iam SSH key

    Name string

    The name of the SSH key.

    OrganizationId string

    The organization ID the SSH key is associated with.

    ProjectId string

    project_id) The ID of the project the SSH key is associated with.

    PublicKey string

    The public SSH key to be added.

    UpdatedAt string

    The date and time of the last update of the iam SSH Key

    CreatedAt string

    The date and time of the creation of the iam SSH Key

    Disabled bool

    The SSH key status

    Fingerprint string

    The fingerprint of the iam SSH key

    Name string

    The name of the SSH key.

    OrganizationId string

    The organization ID the SSH key is associated with.

    ProjectId string

    project_id) The ID of the project the SSH key is associated with.

    PublicKey string

    The public SSH key to be added.

    UpdatedAt string

    The date and time of the last update of the iam SSH Key

    createdAt String

    The date and time of the creation of the iam SSH Key

    disabled Boolean

    The SSH key status

    fingerprint String

    The fingerprint of the iam SSH key

    name String

    The name of the SSH key.

    organizationId String

    The organization ID the SSH key is associated with.

    projectId String

    project_id) The ID of the project the SSH key is associated with.

    publicKey String

    The public SSH key to be added.

    updatedAt String

    The date and time of the last update of the iam SSH Key

    createdAt string

    The date and time of the creation of the iam SSH Key

    disabled boolean

    The SSH key status

    fingerprint string

    The fingerprint of the iam SSH key

    name string

    The name of the SSH key.

    organizationId string

    The organization ID the SSH key is associated with.

    projectId string

    project_id) The ID of the project the SSH key is associated with.

    publicKey string

    The public SSH key to be added.

    updatedAt string

    The date and time of the last update of the iam SSH Key

    created_at str

    The date and time of the creation of the iam SSH Key

    disabled bool

    The SSH key status

    fingerprint str

    The fingerprint of the iam SSH key

    name str

    The name of the SSH key.

    organization_id str

    The organization ID the SSH key is associated with.

    project_id str

    project_id) The ID of the project the SSH key is associated with.

    public_key str

    The public SSH key to be added.

    updated_at str

    The date and time of the last update of the iam SSH Key

    createdAt String

    The date and time of the creation of the iam SSH Key

    disabled Boolean

    The SSH key status

    fingerprint String

    The fingerprint of the iam SSH key

    name String

    The name of the SSH key.

    organizationId String

    The organization ID the SSH key is associated with.

    projectId String

    project_id) The ID of the project the SSH key is associated with.

    publicKey String

    The public SSH key to be added.

    updatedAt String

    The date and time of the last update of the iam SSH Key

    Import

    SSH keys can be imported using the id, e.g. bash

     $ pulumi import scaleway:index/accountSshKey:AccountSshKey main 11111111-1111-1111-1111-111111111111
    

    Package Details

    Repository
    scaleway lbrlabs/pulumi-scaleway
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the scaleway Terraform Provider.

    scaleway logo
    Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs