1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. getStorageObjectStorageBucket
Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core

    Using getStorageObjectStorageBucket

    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 getStorageObjectStorageBucket(args: GetStorageObjectStorageBucketArgs, opts?: InvokeOptions): Promise<GetStorageObjectStorageBucketResult>
    function getStorageObjectStorageBucketOutput(args: GetStorageObjectStorageBucketOutputArgs, opts?: InvokeOptions): Output<GetStorageObjectStorageBucketResult>
    def get_storage_object_storage_bucket(name: Optional[str] = None,
                                          storage_id: Optional[float] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetStorageObjectStorageBucketResult
    def get_storage_object_storage_bucket_output(name: pulumi.Input[Optional[str]] = None,
                                          storage_id: pulumi.Input[Optional[float]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetStorageObjectStorageBucketResult]
    func LookupStorageObjectStorageBucket(ctx *Context, args *LookupStorageObjectStorageBucketArgs, opts ...InvokeOption) (*LookupStorageObjectStorageBucketResult, error)
    func LookupStorageObjectStorageBucketOutput(ctx *Context, args *LookupStorageObjectStorageBucketOutputArgs, opts ...InvokeOption) LookupStorageObjectStorageBucketResultOutput

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

    public static class GetStorageObjectStorageBucket 
    {
        public static Task<GetStorageObjectStorageBucketResult> InvokeAsync(GetStorageObjectStorageBucketArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageObjectStorageBucketResult> Invoke(GetStorageObjectStorageBucketInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageObjectStorageBucketResult> getStorageObjectStorageBucket(GetStorageObjectStorageBucketArgs args, InvokeOptions options)
    public static Output<GetStorageObjectStorageBucketResult> getStorageObjectStorageBucket(GetStorageObjectStorageBucketArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getStorageObjectStorageBucket:getStorageObjectStorageBucket
      arguments:
        # arguments dictionary
    data "gcore_getstorageobjectstoragebucket" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    StorageId double
    Name string
    StorageId float64
    name string
    storage_id number
    name String
    storageId Double
    name string
    storageId number
    name str
    storage_id float
    name String
    storageId Number

    getStorageObjectStorageBucket Result

    The following output properties are available:

    cors object
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    policy object
    storage_id number
    storage_object_storage_bucket_lifecycle object
    cors Property Map
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    policy Property Map
    storageId Number
    storageObjectStorageBucketLifecycle Property Map

    Supporting Types

    GetStorageObjectStorageBucketCors

    AllowedOrigins List<string>
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.
    AllowedOrigins []string
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.
    allowed_origins list(string)
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.
    allowedOrigins List<String>
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.
    allowedOrigins string[]
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.
    allowed_origins Sequence[str]
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.
    allowedOrigins List<String>
    Web domains allowed to make direct browser requests to this bucket (e.g., "https://myapp.com"). Use "*" to allow any origin.

    GetStorageObjectStorageBucketPolicy

    IsPublic bool
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.
    IsPublic bool
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.
    is_public bool
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.
    isPublic Boolean
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.
    isPublic boolean
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.
    is_public bool
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.
    isPublic Boolean
    When true, anyone can download objects without credentials. When false, all requests require valid S3 authentication.

    GetStorageObjectStorageBucketStorageObjectStorageBucketLifecycle

    ExpirationDays double
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.
    ExpirationDays float64
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.
    expiration_days number
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.
    expirationDays Double
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.
    expirationDays number
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.
    expiration_days float
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.
    expirationDays Number
    Days after upload before objects are automatically deleted. For example, 30 means files are removed 30 days after creation.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.8
    published on Wednesday, May 20, 2026 by g-core

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial