1. Packages
  2. Gcore Provider
  3. API Docs
  4. getStorageSftp
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

gcore.getStorageSftp

Explore with Pulumi AI

gcore logo
gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core

    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 dictionary

    The following arguments are supported:

    Id string
    The ID of this resource.
    Name string
    A name of storage resource.
    StorageId double
    An id of storage resource.
    Id string
    The ID of this resource.
    Name string
    A name of storage resource.
    StorageId float64
    An id of storage resource.
    id String
    The ID of this resource.
    name String
    A name of storage resource.
    storageId Double
    An id of storage resource.
    id string
    The ID of this resource.
    name string
    A name of storage resource.
    storageId number
    An id of storage resource.
    id str
    The ID of this resource.
    name str
    A name of storage resource.
    storage_id float
    An id of storage resource.
    id String
    The ID of this resource.
    name String
    A name of storage resource.
    storageId Number
    An id of storage resource.

    getStorageSftp Result

    The following output properties are available:

    ClientId double
    An client id of storage resource.
    GeneratedHttpEndpoint string
    A http sftp entry point for new storage resource.
    GeneratedSftpEndpoint string
    A ssh sftp entry point for new storage resource.
    HttpExpiresHeaderValue string
    A expires date of storage resource.
    HttpServernameAlias string
    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)
    SshKeyIds List<double>
    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.
    StorageId double
    An id of storage resource.
    ClientId float64
    An client id of storage resource.
    GeneratedHttpEndpoint string
    A http sftp entry point for new storage resource.
    GeneratedSftpEndpoint string
    A ssh sftp entry point for new storage resource.
    HttpExpiresHeaderValue string
    A expires date of storage resource.
    HttpServernameAlias string
    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)
    SshKeyIds []float64
    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.
    StorageId float64
    An id of storage resource.
    clientId Double
    An client id of storage resource.
    generatedHttpEndpoint String
    A http sftp entry point for new storage resource.
    generatedSftpEndpoint String
    A ssh sftp entry point for new storage resource.
    httpExpiresHeaderValue String
    A expires date of storage resource.
    httpServernameAlias String
    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)
    sshKeyIds List<Double>
    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.
    storageId Double
    An id of storage resource.
    clientId number
    An client id of storage resource.
    generatedHttpEndpoint string
    A http sftp entry point for new storage resource.
    generatedSftpEndpoint string
    A ssh sftp entry point for new storage resource.
    httpExpiresHeaderValue string
    A expires date of storage resource.
    httpServernameAlias string
    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)
    sshKeyIds number[]
    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.
    storageId number
    An id of storage resource.
    client_id float
    An client id of storage resource.
    generated_http_endpoint str
    A http sftp entry point for new storage resource.
    generated_sftp_endpoint str
    A ssh sftp entry point for new storage resource.
    http_expires_header_value str
    A expires date of storage resource.
    http_servername_alias str
    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_ids Sequence[float]
    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.
    clientId Number
    An client id of storage resource.
    generatedHttpEndpoint String
    A http sftp entry point for new storage resource.
    generatedSftpEndpoint String
    A ssh sftp entry point for new storage resource.
    httpExpiresHeaderValue String
    A expires date of storage resource.
    httpServernameAlias String
    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)
    sshKeyIds List<Number>
    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.
    storageId Number
    An id of storage resource.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core