gcorelabs.StorageSftpKey
Explore with Pulumi AI
Represent storage key resource. https://storage.gcorelabs.com/ssh-key/list
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const terraformTestKey = new gcore.index.Gcore_storage_sftp_key("terraformTestKey", {
name: "terraform_test_key",
key: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== schacon@mylaptop.local",
});
import pulumi
import pulumi_gcore as gcore
terraform_test_key = gcore.index.Gcore_storage_sftp_key("terraformTestKey",
name=terraform_test_key,
key=ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== schacon@mylaptop.local)
package main
import (
"github.com/pulumi/pulumi-gcore/sdk/go/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewGcore_storage_sftp_key(ctx, "terraformTestKey", &gcore.Gcore_storage_sftp_keyArgs{
Name: "terraform_test_key",
Key: "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== schacon@mylaptop.local",
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var terraformTestKey = new Gcore.Index.Gcore_storage_sftp_key("terraformTestKey", new()
{
Name = "terraform_test_key",
Key = "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== schacon@mylaptop.local",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.gcore_storage_sftp_key;
import com.pulumi.gcore.Gcore_storage_sftp_keyArgs;
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 terraformTestKey = new Gcore_storage_sftp_key("terraformTestKey", Gcore_storage_sftp_keyArgs.builder()
.name("terraform_test_key")
.key("ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== schacon@mylaptop.local")
.build());
}
}
resources:
terraformTestKey:
type: gcore:gcore_storage_sftp_key
properties:
name: terraform_test_key
key: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q== schacon@mylaptop.local
Create StorageSftpKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageSftpKey(name: string, args: StorageSftpKeyArgs, opts?: CustomResourceOptions);
@overload
def StorageSftpKey(resource_name: str,
args: StorageSftpKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageSftpKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
key_id: Optional[float] = None,
name: Optional[str] = None,
storage_sftp_key_id: Optional[str] = None)
func NewStorageSftpKey(ctx *Context, name string, args StorageSftpKeyArgs, opts ...ResourceOption) (*StorageSftpKey, error)
public StorageSftpKey(string name, StorageSftpKeyArgs args, CustomResourceOptions? opts = null)
public StorageSftpKey(String name, StorageSftpKeyArgs args)
public StorageSftpKey(String name, StorageSftpKeyArgs args, CustomResourceOptions options)
type: gcorelabs:StorageSftpKey
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 StorageSftpKeyArgs
- 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 StorageSftpKeyArgs
- 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 StorageSftpKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageSftpKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageSftpKeyArgs
- 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 storageSftpKeyResource = new Gcorelabs.StorageSftpKey("storageSftpKeyResource", new()
{
Key = "string",
KeyId = 0,
Name = "string",
StorageSftpKeyId = "string",
});
example, err := gcorelabs.NewStorageSftpKey(ctx, "storageSftpKeyResource", &gcorelabs.StorageSftpKeyArgs{
Key: pulumi.String("string"),
KeyId: pulumi.Float64(0),
Name: pulumi.String("string"),
StorageSftpKeyId: pulumi.String("string"),
})
var storageSftpKeyResource = new StorageSftpKey("storageSftpKeyResource", StorageSftpKeyArgs.builder()
.key("string")
.keyId(0)
.name("string")
.storageSftpKeyId("string")
.build());
storage_sftp_key_resource = gcorelabs.StorageSftpKey("storageSftpKeyResource",
key="string",
key_id=0,
name="string",
storage_sftp_key_id="string")
const storageSftpKeyResource = new gcorelabs.StorageSftpKey("storageSftpKeyResource", {
key: "string",
keyId: 0,
name: "string",
storageSftpKeyId: "string",
});
type: gcorelabs:StorageSftpKey
properties:
key: string
keyId: 0
name: string
storageSftpKeyId: string
StorageSftpKey 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 StorageSftpKey resource accepts the following input properties:
- Key string
- A body of of new storage key resource.
- Key
Id double - An id of of new storage key resource.
- Name string
- A name of new storage key resource.
- Storage
Sftp stringKey Id - The ID of this resource.
- Key string
- A body of of new storage key resource.
- Key
Id float64 - An id of of new storage key resource.
- Name string
- A name of new storage key resource.
- Storage
Sftp stringKey Id - The ID of this resource.
- key String
- A body of of new storage key resource.
- key
Id Double - An id of of new storage key resource.
- name String
- A name of new storage key resource.
- storage
Sftp StringKey Id - The ID of this resource.
- key string
- A body of of new storage key resource.
- key
Id number - An id of of new storage key resource.
- name string
- A name of new storage key resource.
- storage
Sftp stringKey Id - The ID of this resource.
- key str
- A body of of new storage key resource.
- key_
id float - An id of of new storage key resource.
- name str
- A name of new storage key resource.
- storage_
sftp_ strkey_ id - The ID of this resource.
- key String
- A body of of new storage key resource.
- key
Id Number - An id of of new storage key resource.
- name String
- A name of new storage key resource.
- storage
Sftp StringKey Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageSftpKey resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing StorageSftpKey Resource
Get an existing StorageSftpKey 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?: StorageSftpKeyState, opts?: CustomResourceOptions): StorageSftpKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
key: Optional[str] = None,
key_id: Optional[float] = None,
name: Optional[str] = None,
storage_sftp_key_id: Optional[str] = None) -> StorageSftpKey
func GetStorageSftpKey(ctx *Context, name string, id IDInput, state *StorageSftpKeyState, opts ...ResourceOption) (*StorageSftpKey, error)
public static StorageSftpKey Get(string name, Input<string> id, StorageSftpKeyState? state, CustomResourceOptions? opts = null)
public static StorageSftpKey get(String name, Output<String> id, StorageSftpKeyState state, CustomResourceOptions options)
resources: _: type: gcorelabs:StorageSftpKey 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.
- Key string
- A body of of new storage key resource.
- Key
Id double - An id of of new storage key resource.
- Name string
- A name of new storage key resource.
- Storage
Sftp stringKey Id - The ID of this resource.
- Key string
- A body of of new storage key resource.
- Key
Id float64 - An id of of new storage key resource.
- Name string
- A name of new storage key resource.
- Storage
Sftp stringKey Id - The ID of this resource.
- key String
- A body of of new storage key resource.
- key
Id Double - An id of of new storage key resource.
- name String
- A name of new storage key resource.
- storage
Sftp StringKey Id - The ID of this resource.
- key string
- A body of of new storage key resource.
- key
Id number - An id of of new storage key resource.
- name string
- A name of new storage key resource.
- storage
Sftp stringKey Id - The ID of this resource.
- key str
- A body of of new storage key resource.
- key_
id float - An id of of new storage key resource.
- name str
- A name of new storage key resource.
- storage_
sftp_ strkey_ id - The ID of this resource.
- key String
- A body of of new storage key resource.
- key
Id Number - An id of of new storage key resource.
- name String
- A name of new storage key resource.
- storage
Sftp StringKey Id - The ID of this resource.
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.