All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::OSS::Buckets

Last Updated:Jun 05, 2023

DATASOURCE::OSS::Buckets is used to query an Object Storage Service (OSS) bucket.

Return values

Fn::GetAtt

  • BucketNames: the bucket names.

  • Buckets: the buckets.

Property

Type

Description

Constraint

BucketNames

List

The bucket names.

None

Buckets

List

The details of the buckets.

None

IntranetEndpoint

String

The internal endpoint that Elastic Compute Service instances deployed in the same region use to access the bucket.

None

Location

String

The data center in which the bucket is located.  

None

StorageClass

String

The storage class of the bucket.

None

Owner

String

The owner.

None

Name

String

The bucket name.

None

ExtranetEndpoint

String

The public endpoint that is used to access the bucket over the Internet.  

None

CreateTime

String

The time when the bucket was created.

None

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  ExtensionDataSource:
    Properties: {}
    Type: DATASOURCE::OSS::Buckets
Outputs:
  BucketNames:
    Description: The list of bucket names.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - BucketNames
  Buckets:
    Description: The list of buckets.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Buckets

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::OSS::Buckets",
      "Properties": {}
    }
  },
  "Outputs": {
    "BucketNames": {
      "Description": "The list of bucket names.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BucketNames"
        ]
      }
    },
    "Buckets": {
      "Description": "The list of buckets.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Buckets"
        ]
      }
    }
  }
}