gcore 0.20.0 published on Tuesday, Apr 22, 2025 by g-core
gcore.getStorageSftp
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 = gcore.getStorageSftp({
    name: "example",
});
import pulumi
import pulumi_gcore as gcore
example_sftp = gcore.get_storage_sftp(name="example")
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.LookupStorageSftp(ctx, &gcore.LookupStorageSftpArgs{
			Name: pulumi.StringRef("example"),
		}, nil)
		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 = Gcore.GetStorageSftp.Invoke(new()
    {
        Name = "example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetStorageSftpArgs;
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 exampleSftp = GcoreFunctions.getStorageSftp(GetStorageSftpArgs.builder()
            .name("example")
            .build());
    }
}
variables:
  exampleSftp:
    fn::invoke:
      function: gcore:getStorageSftp
      arguments:
        name: example
Using getStorageSftp
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 getStorageSftp(args: GetStorageSftpArgs, opts?: InvokeOptions): Promise<GetStorageSftpResult>
function getStorageSftpOutput(args: GetStorageSftpOutputArgs, opts?: InvokeOptions): Output<GetStorageSftpResult>def get_storage_sftp(id: Optional[str] = None,
                     name: Optional[str] = None,
                     storage_id: Optional[float] = None,
                     opts: Optional[InvokeOptions] = None) -> GetStorageSftpResult
def get_storage_sftp_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     storage_id: Optional[pulumi.Input[float]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetStorageSftpResult]func LookupStorageSftp(ctx *Context, args *LookupStorageSftpArgs, opts ...InvokeOption) (*LookupStorageSftpResult, error)
func LookupStorageSftpOutput(ctx *Context, args *LookupStorageSftpOutputArgs, opts ...InvokeOption) LookupStorageSftpResultOutput> Note: This function is named LookupStorageSftp in the Go SDK.
public static class GetStorageSftp 
{
    public static Task<GetStorageSftpResult> InvokeAsync(GetStorageSftpArgs args, InvokeOptions? opts = null)
    public static Output<GetStorageSftpResult> Invoke(GetStorageSftpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageSftpResult> getStorageSftp(GetStorageSftpArgs args, InvokeOptions options)
public static Output<GetStorageSftpResult> getStorageSftp(GetStorageSftpArgs args, InvokeOptions options)
fn::invoke:
  function: gcore:index/getStorageSftp:getStorageSftp
  arguments:
    # arguments dictionaryThe following arguments are supported:
- id str
 - The ID of this resource.
 - name str
 - A name of storage resource.
 - storage_
id float - An id of storage resource.
 
getStorageSftp Result
The following output properties are available:
- Client
Id double - An client id of storage resource.
 - Generated
Http stringEndpoint  - A http sftp entry point 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.
 - Id string
 - The ID of this resource.
 - Location string
 - A location of new storage resource. One of (ams, sin, fra, mia)
 - Ssh
Key List<double>Ids  - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
 - Name string
 - A name of storage resource.
 - Storage
Id double - An id of storage resource.
 
- Client
Id float64 - An client id of storage resource.
 - Generated
Http stringEndpoint  - A http sftp entry point 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.
 - Id string
 - The ID of this resource.
 - Location string
 - A location of new storage resource. One of (ams, sin, fra, mia)
 - Ssh
Key []float64Ids  - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
 - Name string
 - A name of storage resource.
 - Storage
Id float64 - An id of storage resource.
 
- client
Id Double - An client id of storage resource.
 - generated
Http StringEndpoint  - A http sftp entry point 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.
 - id String
 - The ID of this resource.
 - location String
 - A location of new storage resource. One of (ams, sin, fra, mia)
 - ssh
Key List<Double>Ids  - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
 - name String
 - A name of storage resource.
 - storage
Id Double - An id of storage resource.
 
- client
Id number - An client id of storage resource.
 - generated
Http stringEndpoint  - A http sftp entry point 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.
 - id string
 - The ID of this resource.
 - location string
 - A location of new storage resource. One of (ams, sin, fra, mia)
 - ssh
Key number[]Ids  - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
 - name string
 - A name of storage resource.
 - storage
Id number - An id of storage resource.
 
- client_
id float - An client id of storage resource.
 - generated_
http_ strendpoint  - A http sftp entry point 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.
 - id str
 - The ID of this resource.
 - location str
 - A location of new storage resource. One of (ams, sin, fra, mia)
 - ssh_
key_ Sequence[float]ids  - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
 - name str
 - A name of storage resource.
 - storage_
id float - An id of storage resource.
 
- client
Id Number - An client id of storage resource.
 - generated
Http StringEndpoint  - A http sftp entry point 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.
 - id String
 - The ID of this resource.
 - location String
 - A location of new storage resource. One of (ams, sin, fra, mia)
 - ssh
Key List<Number>Ids  - An ssh keys IDs to link with new sftp storage resource only. https://storage.gcore.com/ssh-key/list
 - name String
 - A name of storage resource.
 - storage
Id Number - An id of storage resource.
 
Package Details
- Repository
 - gcore g-core/terraform-provider-gcore
 - License
 - Notes
 - This Pulumi package is based on the 
gcoreTerraform Provider.