Updated on 2022-02-22 GMT+08:00

OBS.Bucket

Element Description

The OBS.Bucket element is used to deploy an OBS bucket. OBS provides massive, secure, highly reliable, and low-cost data storage capabilities. OBS buckets are used to store objects.

Element Properties

Table 1 Property Description

Property

Mandatory

Description

location

No

Region where the OBS bucket is located

Type: string

Value Description: You can set it to ae-ad-1.

Suggestion: You are not advised to set the value. The system automatically allocates the value to the current region.

name

No

OBS bucket name

Type: string

Value Description: Customize the value, for example, my-bucket.

Value Constraint: The value must be globally unique. It contains 3 to 63 characters and must meet regular expression ^[a-z]([-a-z0-9]*[a-z0-9])?$.

Suggestion: Customize the value.

acl

Yes

Permission control policy of an OBS bucket

Type: string

Value Description: The options are private, public-read, and public-read-write.

Default: private

Value Constraint: The options are private, public-read, and public-read-write.

Table 2 Description of pre-defined permission control policies in OBS

Pre-defined Permission Control Policy

Description

private

Owner of a bucket or object has the FULL_CONTROL permission for the bucket or object. Other users have no permission to access the bucket or object.

public-read

Owner of a bucket or object has the FULL_CONTROL permission for the bucket or object. Other users including anonymous users have the READ permission.

public-read-write

Owner of a bucket or object has the FULL_CONTROL permission for the bucket or object. Other users including anonymous users have the READ and WRITE permissions.

Relationships Between Elements

None.

Return Value

Property

Type

Description

refName

string

Bucket name

Blueprint Example

tosca_definitions_version: cloud_tosca_version_1_0  
inputs:
  bucket-name:
    default: my-first-bucket
  bucket-acl:
    default: public-read
  bucket-location:
    default: ae-ad-1
node_templates:
  my-bucket:
    type: Cloud.OBS.Bucket
    properties:
      name: {get_input: bucket-name}
      acl: {get_input: bucket-acl}
      location: {get_input: bucket-location}