1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. tos
  6. getBucketCors
Viewing docs for volcenginecc v0.0.39
published on Monday, Jun 1, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.39
published on Monday, Jun 1, 2026 by Volcengine

    Data Source schema for Volcengine::TOS::BucketCors

    Using getBucketCors

    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 getBucketCors(args: GetBucketCorsArgs, opts?: InvokeOptions): Promise<GetBucketCorsResult>
    function getBucketCorsOutput(args: GetBucketCorsOutputArgs, opts?: InvokeOptions): Output<GetBucketCorsResult>
    def get_bucket_cors(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetBucketCorsResult
    def get_bucket_cors_output(id: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetBucketCorsResult]
    func LookupBucketCors(ctx *Context, args *LookupBucketCorsArgs, opts ...InvokeOption) (*LookupBucketCorsResult, error)
    func LookupBucketCorsOutput(ctx *Context, args *LookupBucketCorsOutputArgs, opts ...InvokeOption) LookupBucketCorsResultOutput

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

    public static class GetBucketCors 
    {
        public static Task<GetBucketCorsResult> InvokeAsync(GetBucketCorsArgs args, InvokeOptions? opts = null)
        public static Output<GetBucketCorsResult> Invoke(GetBucketCorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBucketCorsResult> getBucketCors(GetBucketCorsArgs args, InvokeOptions options)
    public static Output<GetBucketCorsResult> getBucketCors(GetBucketCorsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcenginecc:tos/getBucketCors:getBucketCors
      arguments:
        # arguments dictionary
    data "volcenginecc_tos_getbucketcors" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Uniquely identifies the resource.
    Id string
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getBucketCors Result

    The following output properties are available:

    BucketName string
    Bucket name.
    CorsRules List<Volcengine.GetBucketCorsCorsRule>
    CORS rule information.
    Id string
    Uniquely identifies the resource.
    BucketName string
    Bucket name.
    CorsRules []GetBucketCorsCorsRule
    CORS rule information.
    Id string
    Uniquely identifies the resource.
    bucket_name string
    Bucket name.
    cors_rules list(object)
    CORS rule information.
    id string
    Uniquely identifies the resource.
    bucketName String
    Bucket name.
    corsRules List<GetBucketCorsCorsRule>
    CORS rule information.
    id String
    Uniquely identifies the resource.
    bucketName string
    Bucket name.
    corsRules GetBucketCorsCorsRule[]
    CORS rule information.
    id string
    Uniquely identifies the resource.
    bucket_name str
    Bucket name.
    cors_rules Sequence[GetBucketCorsCorsRule]
    CORS rule information.
    id str
    Uniquely identifies the resource.
    bucketName String
    Bucket name.
    corsRules List<Property Map>
    CORS rule information.
    id String
    Uniquely identifies the resource.

    Supporting Types

    GetBucketCorsCorsRule

    AllowedHeaders List<string>
    Specify the response headers allowed for cross-origin requests.
    AllowedMethods List<string>
    Specify the allowed methods for cross-origin requests.
    AllowedOrigins List<string>
    Specify the allowed origins for cross-origin requests.
    ExposeHeaders List<string>
    Specify additional headers to include in the CORS response to provide extra information to the client.
    MaxAgeSeconds int
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    ResponseVary bool
    Whether to return the Vary: Origin header
    AllowedHeaders []string
    Specify the response headers allowed for cross-origin requests.
    AllowedMethods []string
    Specify the allowed methods for cross-origin requests.
    AllowedOrigins []string
    Specify the allowed origins for cross-origin requests.
    ExposeHeaders []string
    Specify additional headers to include in the CORS response to provide extra information to the client.
    MaxAgeSeconds int
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    ResponseVary bool
    Whether to return the Vary: Origin header
    allowed_headers list(string)
    Specify the response headers allowed for cross-origin requests.
    allowed_methods list(string)
    Specify the allowed methods for cross-origin requests.
    allowed_origins list(string)
    Specify the allowed origins for cross-origin requests.
    expose_headers list(string)
    Specify additional headers to include in the CORS response to provide extra information to the client.
    max_age_seconds number
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    response_vary bool
    Whether to return the Vary: Origin header
    allowedHeaders List<String>
    Specify the response headers allowed for cross-origin requests.
    allowedMethods List<String>
    Specify the allowed methods for cross-origin requests.
    allowedOrigins List<String>
    Specify the allowed origins for cross-origin requests.
    exposeHeaders List<String>
    Specify additional headers to include in the CORS response to provide extra information to the client.
    maxAgeSeconds Integer
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    responseVary Boolean
    Whether to return the Vary: Origin header
    allowedHeaders string[]
    Specify the response headers allowed for cross-origin requests.
    allowedMethods string[]
    Specify the allowed methods for cross-origin requests.
    allowedOrigins string[]
    Specify the allowed origins for cross-origin requests.
    exposeHeaders string[]
    Specify additional headers to include in the CORS response to provide extra information to the client.
    maxAgeSeconds number
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    responseVary boolean
    Whether to return the Vary: Origin header
    allowed_headers Sequence[str]
    Specify the response headers allowed for cross-origin requests.
    allowed_methods Sequence[str]
    Specify the allowed methods for cross-origin requests.
    allowed_origins Sequence[str]
    Specify the allowed origins for cross-origin requests.
    expose_headers Sequence[str]
    Specify additional headers to include in the CORS response to provide extra information to the client.
    max_age_seconds int
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    response_vary bool
    Whether to return the Vary: Origin header
    allowedHeaders List<String>
    Specify the response headers allowed for cross-origin requests.
    allowedMethods List<String>
    Specify the allowed methods for cross-origin requests.
    allowedOrigins List<String>
    Specify the allowed origins for cross-origin requests.
    exposeHeaders List<String>
    Specify additional headers to include in the CORS response to provide extra information to the client.
    maxAgeSeconds Number
    Specify the cache duration for OPTIONS request responses on the client side, in seconds. Default is 3600.
    responseVary Boolean
    Whether to return the Vary: Origin header

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.39
    published on Monday, Jun 1, 2026 by Volcengine

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial