gcore.StorageSftp
Explore with Pulumi AI
Represent sftp storage resource. https://storage.gcore.com/storage/list
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleSftp = new gcore.StorageSftp("exampleSftp", {
location: "mia",
sshKeyIds: [199],
});
import pulumi
import pulumi_gcore as gcore
example_sftp = gcore.StorageSftp("exampleSftp",
location="mia",
ssh_key_ids=[199])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewStorageSftp(ctx, "exampleSftp", &gcore.StorageSftpArgs{
Location: pulumi.String("mia"),
SshKeyIds: pulumi.Float64Array{
pulumi.Float64(199),
},
})
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 exampleSftp = new Gcore.StorageSftp("exampleSftp", new()
{
Location = "mia",
SshKeyIds = new[]
{
199,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.StorageSftp;
import com.pulumi.gcore.StorageSftpArgs;
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 exampleSftp = new StorageSftp("exampleSftp", StorageSftpArgs.builder()
.location("mia")
.sshKeyIds(199)
.build());
}
}
resources:
exampleSftp:
type: gcore:StorageSftp
properties:
location: mia
sshKeyIds:
- 199
Create StorageSftp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageSftp(name: string, args: StorageSftpArgs, opts?: CustomResourceOptions);
@overload
def StorageSftp(resource_name: str,
args: StorageSftpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StorageSftp(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
generated_sftp_endpoint: Optional[str] = None,
generated_password: Optional[bool] = None,
client_id: Optional[float] = None,
http_expires_header_value: Optional[str] = None,
http_servername_alias: Optional[str] = None,
generated_http_endpoint: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
ssh_key_ids: Optional[Sequence[float]] = None,
storage_id: Optional[float] = None,
storage_sftp_id: Optional[str] = None,
update_after_create: Optional[bool] = None)
func NewStorageSftp(ctx *Context, name string, args StorageSftpArgs, opts ...ResourceOption) (*StorageSftp, error)
public StorageSftp(string name, StorageSftpArgs args, CustomResourceOptions? opts = null)
public StorageSftp(String name, StorageSftpArgs args)
public StorageSftp(String name, StorageSftpArgs args, CustomResourceOptions options)
type: gcore:StorageSftp
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 StorageSftpArgs
- 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 StorageSftpArgs
- 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 StorageSftpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageSftpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageSftpArgs
- 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 storageSftpResource = new Gcore.StorageSftp("storageSftpResource", new()
{
Location = "string",
GeneratedSftpEndpoint = "string",
GeneratedPassword = false,
ClientId = 0,
HttpExpiresHeaderValue = "string",
HttpServernameAlias = "string",
GeneratedHttpEndpoint = "string",
Name = "string",
Password = "string",
SshKeyIds = new[]
{
0,
},
StorageId = 0,
StorageSftpId = "string",
UpdateAfterCreate = false,
});
example, err := gcore.NewStorageSftp(ctx, "storageSftpResource", &gcore.StorageSftpArgs{
Location: pulumi.String("string"),
GeneratedSftpEndpoint: pulumi.String("string"),
GeneratedPassword: pulumi.Bool(false),
ClientId: pulumi.Float64(0),
HttpExpiresHeaderValue: pulumi.String("string"),
HttpServernameAlias: pulumi.String("string"),
GeneratedHttpEndpoint: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
SshKeyIds: pulumi.Float64Array{
pulumi.Float64(0),
},
StorageId: pulumi.Float64(0),
StorageSftpId: pulumi.String("string"),
UpdateAfterCreate: pulumi.Bool(false),
})
var storageSftpResource = new StorageSftp("storageSftpResource", StorageSftpArgs.builder()
.location("string")
.generatedSftpEndpoint("string")
.generatedPassword(false)
.clientId(0)
.httpExpiresHeaderValue("string")
.httpServernameAlias("string")
.generatedHttpEndpoint("string")
.name("string")
.password("string")
.sshKeyIds(0)
.storageId(0)
.storageSftpId("string")
.updateAfterCreate(false)
.build());
storage_sftp_resource = gcore.StorageSftp("storageSftpResource",
location="string",
generated_sftp_endpoint="string",
generated_password=False,
client_id=0,
http_expires_header_value="string",
http_servername_alias="string",
generated_http_endpoint="string",
name="string",
password="string",
ssh_key_ids=[0],
storage_id=0,
storage_sftp_id="string",
update_after_create=False)
const storageSftpResource = new gcore.StorageSftp("storageSftpResource", {
location: "string",
generatedSftpEndpoint: "string",
generatedPassword: false,
clientId: 0,
httpExpiresHeaderValue: "string",
httpServernameAlias: "string",
generatedHttpEndpoint: "string",
name: "string",
password: "string",
sshKeyIds: [0],
storageId: 0,
storageSftpId: "string",
updateAfterCreate: false,
});
type: gcore:StorageSftp
properties:
clientId: 0
generatedHttpEndpoint: string
generatedPassword: false
generatedSftpEndpoint: string
httpExpiresHeaderValue: string
httpServernameAlias: string
location: string
name: string
password: string
sshKeyIds:
- 0
storageId: 0
storageSftpId: string
updateAfterCreate: false
StorageSftp 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 StorageSftp resource accepts the following input properties:
- Location string
- A location of new storage resource. One of (ams, sin, fra, mia)
- Client
Id double - An client id of new storage resource.
- Generated
Http stringEndpoint - A http sftp entry point for new storage resource.
- Generated
Password bool - An auto generated sftp password for new storage resource.
- Generated
Sftp stringEndpoint - A ssh sftp entry point for new storage resource.
- Http
Expires stringHeader Value - A expires date of storage resource.
- Http
Servername stringAlias - An alias of storage resource.
- Name string
- A name of new storage resource.
- Password string
- A sftp password for new storage resource.
- Ssh
Key List<double>Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- Storage
Id double - An id of new storage resource.
- Storage
Sftp stringId - The ID of this resource.
- Update
After boolCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- Location string
- A location of new storage resource. One of (ams, sin, fra, mia)
- Client
Id float64 - An client id of new storage resource.
- Generated
Http stringEndpoint - A http sftp entry point for new storage resource.
- Generated
Password bool - An auto generated sftp password for new storage resource.
- Generated
Sftp stringEndpoint - A ssh sftp entry point for new storage resource.
- Http
Expires stringHeader Value - A expires date of storage resource.
- Http
Servername stringAlias - An alias of storage resource.
- Name string
- A name of new storage resource.
- Password string
- A sftp password for new storage resource.
- Ssh
Key []float64Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- Storage
Id float64 - An id of new storage resource.
- Storage
Sftp stringId - The ID of this resource.
- Update
After boolCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- location String
- A location of new storage resource. One of (ams, sin, fra, mia)
- client
Id Double - An client id of new storage resource.
- generated
Http StringEndpoint - A http sftp entry point for new storage resource.
- generated
Password Boolean - An auto generated sftp password for new storage resource.
- generated
Sftp StringEndpoint - A ssh sftp entry point for new storage resource.
- http
Expires StringHeader Value - A expires date of storage resource.
- http
Servername StringAlias - An alias of storage resource.
- name String
- A name of new storage resource.
- password String
- A sftp password for new storage resource.
- ssh
Key List<Double>Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage
Id Double - An id of new storage resource.
- storage
Sftp StringId - The ID of this resource.
- update
After BooleanCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- location string
- A location of new storage resource. One of (ams, sin, fra, mia)
- client
Id number - An client id of new storage resource.
- generated
Http stringEndpoint - A http sftp entry point for new storage resource.
- generated
Password boolean - An auto generated sftp password for new storage resource.
- generated
Sftp stringEndpoint - A ssh sftp entry point for new storage resource.
- http
Expires stringHeader Value - A expires date of storage resource.
- http
Servername stringAlias - An alias of storage resource.
- name string
- A name of new storage resource.
- password string
- A sftp password for new storage resource.
- ssh
Key number[]Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage
Id number - An id of new storage resource.
- storage
Sftp stringId - The ID of this resource.
- update
After booleanCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- location str
- A location of new storage resource. One of (ams, sin, fra, mia)
- client_
id float - An client id of new storage resource.
- generated_
http_ strendpoint - A http sftp entry point for new storage resource.
- generated_
password bool - An auto generated sftp password for new storage resource.
- generated_
sftp_ strendpoint - A ssh sftp entry point for new storage resource.
- http_
expires_ strheader_ value - A expires date of storage resource.
- http_
servername_ stralias - An alias of storage resource.
- name str
- A name of new storage resource.
- password str
- A sftp password for new storage resource.
- ssh_
key_ Sequence[float]ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage_
id float - An id of new storage resource.
- storage_
sftp_ strid - The ID of this resource.
- update_
after_ boolcreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- location String
- A location of new storage resource. One of (ams, sin, fra, mia)
- client
Id Number - An client id of new storage resource.
- generated
Http StringEndpoint - A http sftp entry point for new storage resource.
- generated
Password Boolean - An auto generated sftp password for new storage resource.
- generated
Sftp StringEndpoint - A ssh sftp entry point for new storage resource.
- http
Expires StringHeader Value - A expires date of storage resource.
- http
Servername StringAlias - An alias of storage resource.
- name String
- A name of new storage resource.
- password String
- A sftp password for new storage resource.
- ssh
Key List<Number>Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage
Id Number - An id of new storage resource.
- storage
Sftp StringId - The ID of this resource.
- update
After BooleanCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageSftp 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 StorageSftp Resource
Get an existing StorageSftp 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?: StorageSftpState, opts?: CustomResourceOptions): StorageSftp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_id: Optional[float] = None,
generated_http_endpoint: Optional[str] = None,
generated_password: Optional[bool] = None,
generated_sftp_endpoint: Optional[str] = None,
http_expires_header_value: Optional[str] = None,
http_servername_alias: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
ssh_key_ids: Optional[Sequence[float]] = None,
storage_id: Optional[float] = None,
storage_sftp_id: Optional[str] = None,
update_after_create: Optional[bool] = None) -> StorageSftp
func GetStorageSftp(ctx *Context, name string, id IDInput, state *StorageSftpState, opts ...ResourceOption) (*StorageSftp, error)
public static StorageSftp Get(string name, Input<string> id, StorageSftpState? state, CustomResourceOptions? opts = null)
public static StorageSftp get(String name, Output<String> id, StorageSftpState state, CustomResourceOptions options)
resources: _: type: gcore:StorageSftp 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.
- Client
Id double - An client id of new storage resource.
- Generated
Http stringEndpoint - A http sftp entry point for new storage resource.
- Generated
Password bool - An auto generated sftp password for new storage resource.
- Generated
Sftp stringEndpoint - A ssh sftp entry point for new storage resource.
- Http
Expires stringHeader Value - A expires date of storage resource.
- Http
Servername stringAlias - An alias of storage resource.
- Location string
- A location of new storage resource. One of (ams, sin, fra, mia)
- Name string
- A name of new storage resource.
- Password string
- A sftp password for new storage resource.
- Ssh
Key List<double>Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- Storage
Id double - An id of new storage resource.
- Storage
Sftp stringId - The ID of this resource.
- Update
After boolCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- Client
Id float64 - An client id of new storage resource.
- Generated
Http stringEndpoint - A http sftp entry point for new storage resource.
- Generated
Password bool - An auto generated sftp password for new storage resource.
- Generated
Sftp stringEndpoint - A ssh sftp entry point for new storage resource.
- Http
Expires stringHeader Value - A expires date of storage resource.
- Http
Servername stringAlias - An alias of storage resource.
- Location string
- A location of new storage resource. One of (ams, sin, fra, mia)
- Name string
- A name of new storage resource.
- Password string
- A sftp password for new storage resource.
- Ssh
Key []float64Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- Storage
Id float64 - An id of new storage resource.
- Storage
Sftp stringId - The ID of this resource.
- Update
After boolCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- client
Id Double - An client id of new storage resource.
- generated
Http StringEndpoint - A http sftp entry point for new storage resource.
- generated
Password Boolean - An auto generated sftp password for new storage resource.
- generated
Sftp StringEndpoint - A ssh sftp entry point for new storage resource.
- http
Expires StringHeader Value - A expires date of storage resource.
- http
Servername StringAlias - An alias of storage resource.
- location String
- A location of new storage resource. One of (ams, sin, fra, mia)
- name String
- A name of new storage resource.
- password String
- A sftp password for new storage resource.
- ssh
Key List<Double>Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage
Id Double - An id of new storage resource.
- storage
Sftp StringId - The ID of this resource.
- update
After BooleanCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- client
Id number - An client id of new storage resource.
- generated
Http stringEndpoint - A http sftp entry point for new storage resource.
- generated
Password boolean - An auto generated sftp password for new storage resource.
- generated
Sftp stringEndpoint - A ssh sftp entry point for new storage resource.
- http
Expires stringHeader Value - A expires date of storage resource.
- http
Servername stringAlias - An alias of storage resource.
- location string
- A location of new storage resource. One of (ams, sin, fra, mia)
- name string
- A name of new storage resource.
- password string
- A sftp password for new storage resource.
- ssh
Key number[]Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage
Id number - An id of new storage resource.
- storage
Sftp stringId - The ID of this resource.
- update
After booleanCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- client_
id float - An client id of new storage resource.
- generated_
http_ strendpoint - A http sftp entry point for new storage resource.
- generated_
password bool - An auto generated sftp password for new storage resource.
- generated_
sftp_ strendpoint - A ssh sftp entry point for new storage resource.
- http_
expires_ strheader_ value - A expires date of storage resource.
- http_
servername_ stralias - An alias of storage resource.
- location str
- A location of new storage resource. One of (ams, sin, fra, mia)
- name str
- A name of new storage resource.
- password str
- A sftp password for new storage resource.
- ssh_
key_ Sequence[float]ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage_
id float - An id of new storage resource.
- storage_
sftp_ strid - The ID of this resource.
- update_
after_ boolcreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
- client
Id Number - An client id of new storage resource.
- generated
Http StringEndpoint - A http sftp entry point for new storage resource.
- generated
Password Boolean - An auto generated sftp password for new storage resource.
- generated
Sftp StringEndpoint - A ssh sftp entry point for new storage resource.
- http
Expires StringHeader Value - A expires date of storage resource.
- http
Servername StringAlias - An alias of storage resource.
- location String
- A location of new storage resource. One of (ams, sin, fra, mia)
- name String
- A name of new storage resource.
- password String
- A sftp password for new storage resource.
- ssh
Key List<Number>Ids - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
- storage
Id Number - An id of new storage resource.
- storage
Sftp StringId - The ID of this resource.
- update
After BooleanCreate - A temporary flag. An internal cheat, to skip update ssh keys. Skip it.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.