1. Packages
  2. Gcore Provider
  3. API Docs
  4. getStorageS3
gcore 0.20.0 published on Tuesday, Apr 22, 2025 by g-core

gcore.getStorageS3

Explore with Pulumi AI

gcore 0.20.0 published on Tuesday, Apr 22, 2025 by g-core

Represent s3 storage resource. https://storage.gcore.com/storage/list

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const exampleS3 = gcore.getStorageS3({
    name: "example",
});
Copy
import pulumi
import pulumi_gcore as gcore

example_s3 = gcore.get_storage_s3(name="example")
Copy
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.LookupStorageS3(ctx, &gcore.LookupStorageS3Args{
			Name: pulumi.StringRef("example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var exampleS3 = Gcore.GetStorageS3.Invoke(new()
    {
        Name = "example",
    });

});
Copy
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.GetStorageS3Args;
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 exampleS3 = GcoreFunctions.getStorageS3(GetStorageS3Args.builder()
            .name("example")
            .build());

    }
}
Copy
variables:
  exampleS3:
    fn::invoke:
      function: gcore:getStorageS3
      arguments:
        name: example
Copy

Using getStorageS3

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 getStorageS3(args: GetStorageS3Args, opts?: InvokeOptions): Promise<GetStorageS3Result>
function getStorageS3Output(args: GetStorageS3OutputArgs, opts?: InvokeOptions): Output<GetStorageS3Result>
Copy
def get_storage_s3(id: Optional[str] = None,
                   name: Optional[str] = None,
                   storage_id: Optional[float] = None,
                   opts: Optional[InvokeOptions] = None) -> GetStorageS3Result
def get_storage_s3_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[GetStorageS3Result]
Copy
func LookupStorageS3(ctx *Context, args *LookupStorageS3Args, opts ...InvokeOption) (*LookupStorageS3Result, error)
func LookupStorageS3Output(ctx *Context, args *LookupStorageS3OutputArgs, opts ...InvokeOption) LookupStorageS3ResultOutput
Copy

> Note: This function is named LookupStorageS3 in the Go SDK.

public static class GetStorageS3 
{
    public static Task<GetStorageS3Result> InvokeAsync(GetStorageS3Args args, InvokeOptions? opts = null)
    public static Output<GetStorageS3Result> Invoke(GetStorageS3InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStorageS3Result> getStorageS3(GetStorageS3Args args, InvokeOptions options)
public static Output<GetStorageS3Result> getStorageS3(GetStorageS3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: gcore:index/getStorageS3:getStorageS3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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

getStorageS3 Result

The following output properties are available:

ClientId double
An client id of new storage resource.
GeneratedEndpoint string
A s3 entry point for new storage resource.
GeneratedHttpEndpoint string
A http s3 entry point for new storage resource.
GeneratedS3Endpoint string
A s3 endpoint for new storage resource.
Id string
The ID of this resource.
Location string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
Name string
A name of new storage resource.
StorageId double
An id of new storage resource.
ClientId float64
An client id of new storage resource.
GeneratedEndpoint string
A s3 entry point for new storage resource.
GeneratedHttpEndpoint string
A http s3 entry point for new storage resource.
GeneratedS3Endpoint string
A s3 endpoint for new storage resource.
Id string
The ID of this resource.
Location string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
Name string
A name of new storage resource.
StorageId float64
An id of new storage resource.
clientId Double
An client id of new storage resource.
generatedEndpoint String
A s3 entry point for new storage resource.
generatedHttpEndpoint String
A http s3 entry point for new storage resource.
generatedS3Endpoint String
A s3 endpoint for new storage resource.
id String
The ID of this resource.
location String
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name String
A name of new storage resource.
storageId Double
An id of new storage resource.
clientId number
An client id of new storage resource.
generatedEndpoint string
A s3 entry point for new storage resource.
generatedHttpEndpoint string
A http s3 entry point for new storage resource.
generatedS3Endpoint string
A s3 endpoint for new storage resource.
id string
The ID of this resource.
location string
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name string
A name of new storage resource.
storageId number
An id of new storage resource.
client_id float
An client id of new storage resource.
generated_endpoint str
A s3 entry point for new storage resource.
generated_http_endpoint str
A http s3 entry point for new storage resource.
generated_s3_endpoint str
A s3 endpoint for new storage resource.
id str
The ID of this resource.
location str
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name str
A name of new storage resource.
storage_id float
An id of new storage resource.
clientId Number
An client id of new storage resource.
generatedEndpoint String
A s3 entry point for new storage resource.
generatedHttpEndpoint String
A http s3 entry point for new storage resource.
generatedS3Endpoint String
A s3 endpoint for new storage resource.
id String
The ID of this resource.
location String
A location of new storage resource. One of (s-ed1, s-darz, s-darz1, s-ws1, s-dt2, s-drc2)
name String
A name of new storage resource.
storageId Number
An id of new storage resource.

Package Details

Repository
gcore g-core/terraform-provider-gcore
License
Notes
This Pulumi package is based on the gcore Terraform Provider.
gcore 0.20.0 published on Tuesday, Apr 22, 2025 by g-core