POST v1/bunits/{bunitId}/consumers/{consumerId}/cosbucket

Add a bucket to a consumption unit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bunitId The ID of the business unit of the bucket integer

Required

consumerId The ID of the consumption unit of the bucket integer

Required

Body Parameters

The bucket to create

CosBucket
NameDescriptionTypeAdditional information
Name Name
string

None.

CosId Unique COS ID
string

None.

ObjectCount Number of Objects
integer

None.

ObjectsSizeBytes Total Size of Objects
integer

None.

VersioningState VersioningState

None.

HardQuotaBytes integer

None.

RetentionPolicy RetentionPolicy

None.

RetentionDays integer

None.

StaticWebsiteEnabled boolean

None.

HasReplicationPolicy boolean

None.

HasActiveInventoryPolicy boolean

None.

IsBackupVault boolean

None.

DeleteProcess DeleteProcess

None.

Owner CosAccount

None.

Vault CosVault

None.

Consumer Consumer

None.

Preset CosBucketPreset

None.

DataSourceState DataSourceState

None.

DataSourcePlatform DataSourcePlatform

None.

DataSourceType DataSourceType

None.

BackupServer Server

None.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Operations Collection of OperationResult

None.

Request Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

Response Information

Resource Description

The created bucket

CosBucket
NameDescriptionTypeAdditional information
Name Name
string

None.

CosId Unique COS ID
string

None.

ObjectCount Number of Objects
integer

None.

ObjectsSizeBytes Total Size of Objects
integer

None.

VersioningState VersioningState

None.

HardQuotaBytes integer

None.

RetentionPolicy RetentionPolicy

None.

RetentionDays integer

None.

StaticWebsiteEnabled boolean

None.

HasReplicationPolicy boolean

None.

HasActiveInventoryPolicy boolean

None.

IsBackupVault boolean

None.

DeleteProcess DeleteProcess

None.

Owner CosAccount

None.

Vault CosVault

None.

Consumer Consumer

None.

Preset CosBucketPreset

None.

DataSourceState DataSourceState

None.

DataSourcePlatform DataSourcePlatform

None.

DataSourceType DataSourceType

None.

BackupServer Server

None.

Id A unique ID for the object.
integer

Read-only.

CreatedDate Time and date the object was created.
date

Read-only.

ArchivedDate Time and date the object was or is going to be archived.

Unarchived objects have no value in ArchivedDate
date

Read-only.

Operations Collection of OperationResult

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.