Returns metadata for the specified bucket

GET /b/{bucket}

Returns metadata for the specified bucket.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows reading of bucket metadata.

  • cloud-object-storage.bucket.list_bucket_crn
  • cloud-object-storage.bucket.get_firewall
  • cloud-object-storage.bucket.get_activity_tracking
  • cloud-object-storage.bucket.get_metrics_monitoring
  • cloud-object-storage.bucket.get_protection_management

Request

Response

200 - Success

name

string

The name of the bucket. Non-mutable.

crn

string

The service instance that holds the bucket. Non-mutable.

service_instance_id

string

The service instance that holds the bucket. Non-mutable.

service_instance_crn

string

The service instance that holds the bucket. Non-mutable.

time_created

string

The creation time of the bucket in RFC 3339 format. Non-mutable.

time_updated

string

The modification time of the bucket in RFC 3339 format. Non-mutable.

object_count

integer

Total number of objects in the bucket. Non-mutable.

bytes_used

integer

Total size of all objects in the bucket. Non-mutable.

noncurrent_object_count

integer

Number of non-current object versions in the bucket. Non-mutable.

noncurrent_bytes_used

integer

Total size of all non-current object versions in the bucket. Non-mutable.

delete_marker_count

integer

Total number of delete markers in the bucket. Non-mutable.

firewall

Firewall

An access control mechanism based on the network (IP address) where request originated. Requests not originating from IP addresses listed in the `allowed_ip` field will be denied regardless of any access policies (including public access) that might otherwise permit the request. Viewing or updating the `Firewall` element requires the requester to have the `manager` role.

activity_tracking

ActivityTracking

Enables sending log data to IBM Cloud Activity Tracker Event Routing to provide visibility into bucket management, object read and write events. (Recommended) When the `activity_tracker_crn` is not populated, then enabled events are sent to the Activity Tracker Event Routing instance at the container's location unless otherwise specified in the Activity Tracker Event Routing Event Routing service configuration. (Legacy) When the `activity_tracker_crn` is populated, then enabled events are sent to the Activity Tracker Event Routing instance specified.

metrics_monitoring

MetricsMonitoring

Enables sending metrics to IBM Cloud Monitoring. All metrics are opt-in. (Recommended) When the `metrics_monitoring_crn` is not populated, then enabled metrics are sent to the Monitoring instance at the container's location unless otherwise specified in the Metrics Router service configuration. (Legacy) When the `metrics_monitoring_crn` is populated, then enabled metrics are sent to the Monitoring instance defined in the `metrics_monitoring_crn` field.

hard_quota

integer

Maximum bytes for this bucket.

protection_management

ProtectionManagementResponse

Data structure holding protection management response.

400 - Bad Request

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

401 - Unauthorized

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

403 - Forbidden

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

404 - Not Found

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

500 - Internal Server Error

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

Make changes to a bucket's configuration

PATCH /b/{bucket}

Updates a bucket using JSON Merge Patch. This request is used to add functionality (like an IP access filter) or to update existing parameters. Primitives are overwritten and replaced in their entirety. It is not possible to append a new (or to delete a specific) value to an array. Arrays can be cleared by updating the parameter with an empty array `[]`. A `PATCH` operation only updates specified mutable fields. Please don't use `PATCH` trying to update the number of objects in a bucket, any timestamps, or other non-mutable fields.

Request

Request Body

An object containing new configuration metadata.

Path Parameters

Query Parameters

Response

200 - Success

400 - Bad Request

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

401 - Unauthorized

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

403 - Forbidden

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

404 - Not Found

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

412 - Precondition Failed

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

500 - Internal Server Error

http_status_code

integer

HTTP status code for the response.

code

string

The category of the error.

message

string

A short description of the error.

resource

string

Target of the failed request.

ibm_cos_request_id

string

The UUID of the failed request.

Add a new backup policy to the COS Bucket

POST /buckets/{bucket}/backup_policies

Attach a new Backup Policy on a bucket.

This request results in the creation of a single, new RecoveryRange on the destination BackupVault.

Deletion and re-creation of a BackupPolicy to the same BackupVault destination will generate a new RecoveryRange.

The following shall be validated. Any failure to validate shall cause a HTTP 400 to be returned.

* the source-bucket must have `cloud-object-storage.backup_vault.sync` permissions on the Backup Vault
* the source-bucket must have versioning-on
* the Backup Vault must exist and be able to be contacted by the source-bucket
* the source-bucket must not have an existing BackupPolicy targeting the Backup Vault
* the source-bucket must not have a BackupPolicy with the same policy_name
* the source-bucket must have fewer than 3 total BackupPolicies

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for creation of a bucket backup policy.

  • cloud-object-storage.bucket.post_backup_policy

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.bucket-backup-policy.create

Request

Request Body

BackupPolicyPrototype

A backup policy

initial_retention

Required *

object

This is the initial retention configuration set onto the RecoveryRange created by this policy. Once created, this retention value can be changed on the RecoveryRange itself. Such changes will not be reflected in the value reported here.

delete_after_days

Required *

integer

The number of days to retain data within a RecoveryRange.

policy_name

Required *

string

The name granted to the policy. Validation : * chars limited to alphanumeric, underscore, hyphen and period

target_backup_vault_crn

Required *

string

The CRN for a COS BackupVault.

backup_type

Required *

BackupType

The type of backup to support. For LA+GA this is limited to "continuous"

Path Parameters

Query Parameters

Response

201 - Successful operation

initial_retention

object

This is the initial retention configuration set onto the RecoveryRange created by this policy. Once created, this retention value can be changed on the RecoveryRange itself. Such changes will not be reflected in the value reported here.

policy_name

string

The name granted to the policy. Validation : * chars limited to alphanumeric, underscore, hyphen and period

target_backup_vault_crn

string

The CRN for a COS BackupVault.

backup_type

BackupType

The type of backup to support. For LA+GA this is limited to "continuous"

policy_id

string

A UUID that uniquely identifies a resource.

policy_status

PolicyStatus

The current status of the backup policy.

pending : the policy has been received and has begun processing. initializing : pre-existing objects are being sync to the backup vault. active : the policy is active and healthy. action_needed : the policy is unhealthy and requires some intervention to recover degraded : the policy is unhealthy failed : the policy has failed unrecoverably

initial_sync_progress

number

Reports percent-doneness of init. Only present when policy_status=INITIALIZING/PENDING.

error_cause

string

reports error cause. Only present when policy_status=ERROR/FAILED.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

List BackupPolicies

GET /buckets/{bucket}/backup_policies

Get all backup policies on a bucket.

This request generates the "cloud-object-storage.bucket-backup-policy.list" ActivityTracking event.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for listing of bucket backup policies.

  • cloud-object-storage.bucket.list_backup_policies

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.bucket-backup-policy.list

Request

Response

200 - Successful operation

backup_policies

array

A collection of backup policies.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

Get BackupPolicy

GET /buckets/{bucket}/backup_policies/{policy_id}

Read a specific backup policy on a bucket.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for viewing a bucket backup policy.

  • cloud-object-storage.bucket.get_backup_policy

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.bucket-backup-policy.read

Request

Response

200 - Successful operation

initial_retention

object

This is the initial retention configuration set onto the RecoveryRange created by this policy. Once created, this retention value can be changed on the RecoveryRange itself. Such changes will not be reflected in the value reported here.

policy_name

string

The name granted to the policy. Validation : * chars limited to alphanumeric, underscore, hyphen and period

target_backup_vault_crn

string

The CRN for a COS BackupVault.

backup_type

BackupType

The type of backup to support. For LA+GA this is limited to "continuous"

policy_id

string

A UUID that uniquely identifies a resource.

policy_status

PolicyStatus

The current status of the backup policy.

pending : the policy has been received and has begun processing. initializing : pre-existing objects are being sync to the backup vault. active : the policy is active and healthy. action_needed : the policy is unhealthy and requires some intervention to recover degraded : the policy is unhealthy failed : the policy has failed unrecoverably

initial_sync_progress

number

Reports percent-doneness of init. Only present when policy_status=INITIALIZING/PENDING.

error_cause

string

reports error cause. Only present when policy_status=ERROR/FAILED.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

Delete a BackupPolicy

DELETE /buckets/{bucket}/backup_policies/{policy_id}

Delete a specific BackupPolicy.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for deleting a bucket backup policy.

  • cloud-object-storage.bucket.delete_backup_policy

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.bucket-backup-policy.delete

Request

Response

204 - Successful operation

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

list BackupVaults

GET /backup_vaults

Returns a list of BackupVault CRNs owned by the account.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for listing all the backup vaults in a service instance.

  • cloud-object-storage.backup_vault.list_account_backup_vaults

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-vault.list

Request

Path Parameters

Query Parameters

token

the continuation token for controlling pagination

Response

200 - Successful operation

next

NextPagination

Pagination response body

backup_vaults

array

List of Backup Vaults. If no Backup Vaults exist, this array will be empty.

400 - Bad Request, service_instance_id header param is missing, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

create a BackupVault

POST /backup_vaults

Creates a BackupVault.

Certain fields will be returned only if the user has specific permissions: - `activity_tracking` requires `cloud-object-storage.backup_vault.put_activity_tracking` - `metrics_monitoring` requires `cloud-object-storage.backup_vault.put_metrics_monitoring`

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for creating a backup vault in a service instance.

  • cloud-object-storage.backup_vault.post_backup_vault
  • cloud-object-storage.backup_vault.put_activity_tracking
  • cloud-object-storage.backup_vault.put_metrics_monitoring

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-vault.create

Request

Request Body

BackupVaultPrototype

A Backup Vault config object

activity_tracking

BackupVaultActivityTracking

Activity Tracking configuration. An empty object (`{}`) indicates no configuration, and no events will be sent (This is the same behavior as `{"management_events":false}`). Note that read/write events cannot be enabled, and events cannot be routed to a non-default Activity Tracker instance.

management_events

boolean

Whether to send notifications for management events on the BackupVault.

metrics_monitoring

BackupVaultMetricsMonitoring

Metrics Monitoring configuration. An empty object (`{}`) indicates no configuration, and no metrics will be collected (This is the same behavior as `{"usage_metrics_enabled":false}`). Note that request metrics cannot be enabled, and metrics cannot be routed to a non-default metrics router instance.

usage_metrics_enabled

boolean

Whether usage metrics are collected for this BackupVault.

backup_vault_name

Required *

string

The name given to a Bucket.

Bucket names must be between 3 and 63 characters long must be made of lowercase letters, numbers, dots (periods), and dashes (hyphens). Bucket names must begin and end with a lowercase letter or number. Bucket names can’t contain consecutive dots or dashes. Bucket names that resemble IP addresses are not allowed.

Bucket and BackupVault names exist in a global namespace and therefore must be unique.

region

Required *

string

the region in which this backup-vault should be created within.

sse_kp_customer_root_key_crn

string

The CRN for a KeyProtect root key.

Response

201 - Successful operation

activity_tracking

BackupVaultActivityTracking

Activity Tracking configuration. An empty object (`{}`) indicates no configuration, and no events will be sent (This is the same behavior as `{"management_events":false}`). Note that read/write events cannot be enabled, and events cannot be routed to a non-default Activity Tracker instance.

metrics_monitoring

BackupVaultMetricsMonitoring

Metrics Monitoring configuration. An empty object (`{}`) indicates no configuration, and no metrics will be collected (This is the same behavior as `{"usage_metrics_enabled":false}`). Note that request metrics cannot be enabled, and metrics cannot be routed to a non-default metrics router instance.

backup_vault_name

string

The name given to a Bucket.

Bucket names must be between 3 and 63 characters long must be made of lowercase letters, numbers, dots (periods), and dashes (hyphens). Bucket names must begin and end with a lowercase letter or number. Bucket names can’t contain consecutive dots or dashes. Bucket names that resemble IP addresses are not allowed.

Bucket and BackupVault names exist in a global namespace and therefore must be unique.

region

string

the region in which this backup-vault should be created within.

sse_kp_customer_root_key_crn

string

The CRN for a KeyProtect root key.

crn

string

The CRN for a COS BackupVault.

service_instance_crn

string

A COS ServiceInstance CRN.

time_created

string

creation time of the backup-vault. Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

time_updated

string

time of last update to the backup-vault Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

bytes_used

integer

byte useage of the backup-vault. This should include all usage, including non-current versions. A maximum value is not defined.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

get the config for a Backup Vault

GET /backup_vaults/{backup_vault_name}

Gets configuration information for a Backup Vault.

Certain fields will be returned only if the user has specific permissions: - `activity_tracking` requires `cloud-object-storage.backup_vault.get_activity_tracking` - `metrics_monitoring` requires `cloud-object-storage.backup_vault.get_metrics_monitoring` - `sse_kp_customer_root_key_crn` requires `cloud-object-storage.backup_vault.get_crk_id`

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for reading backup vault configuration.

  • cloud-object-storage.backup_vault.get_basic
  • cloud-object-storage.backup_vault.get_activity_tracking
  • cloud-object-storage.backup_vault.get_metrics_monitoring
  • cloud-object-storage.backup_vault.get_crk_id

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-vault-configuration.read

Request

Response

200 - Successful operation

activity_tracking

BackupVaultActivityTracking

Activity Tracking configuration. An empty object (`{}`) indicates no configuration, and no events will be sent (This is the same behavior as `{"management_events":false}`). Note that read/write events cannot be enabled, and events cannot be routed to a non-default Activity Tracker instance.

metrics_monitoring

BackupVaultMetricsMonitoring

Metrics Monitoring configuration. An empty object (`{}`) indicates no configuration, and no metrics will be collected (This is the same behavior as `{"usage_metrics_enabled":false}`). Note that request metrics cannot be enabled, and metrics cannot be routed to a non-default metrics router instance.

backup_vault_name

string

The name given to a Bucket.

Bucket names must be between 3 and 63 characters long must be made of lowercase letters, numbers, dots (periods), and dashes (hyphens). Bucket names must begin and end with a lowercase letter or number. Bucket names can’t contain consecutive dots or dashes. Bucket names that resemble IP addresses are not allowed.

Bucket and BackupVault names exist in a global namespace and therefore must be unique.

region

string

the region in which this backup-vault should be created within.

sse_kp_customer_root_key_crn

string

The CRN for a KeyProtect root key.

crn

string

The CRN for a COS BackupVault.

service_instance_crn

string

A COS ServiceInstance CRN.

time_created

string

creation time of the backup-vault. Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

time_updated

string

time of last update to the backup-vault Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

bytes_used

integer

byte useage of the backup-vault. This should include all usage, including non-current versions. A maximum value is not defined.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

Update the config on a Backup Vault

PATCH /backup_vaults/{backup_vault_name}

Update the Backup Vault config via JSON Merge Patch update semantics.

In particular, note that providing an empty object (`{}`) to either field in the request body will remove any existing configuration.

Requires that the user have specific permissions depending on what is being changed: - `activity_tracking` requires `cloud-object-storage.backup_vault.put_activity_tracking` - `metrics_monitoring` requires `cloud-object-storage.backup_vault.put_metrics_monitoring`

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for updating specific backup vault configurations.

  • cloud-object-storage.backup_vault.put_activity_tracking
  • cloud-object-storage.backup_vault.put_metrics_monitoring

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-vault-configuration.update

Request

Request Body

A Backup Vault config object containing changes to apply to the existing Backup Vault config.

Path Parameters

Query Parameters

Response

200 - Successful operation

activity_tracking

BackupVaultActivityTracking

Activity Tracking configuration. An empty object (`{}`) indicates no configuration, and no events will be sent (This is the same behavior as `{"management_events":false}`). Note that read/write events cannot be enabled, and events cannot be routed to a non-default Activity Tracker instance.

metrics_monitoring

BackupVaultMetricsMonitoring

Metrics Monitoring configuration. An empty object (`{}`) indicates no configuration, and no metrics will be collected (This is the same behavior as `{"usage_metrics_enabled":false}`). Note that request metrics cannot be enabled, and metrics cannot be routed to a non-default metrics router instance.

backup_vault_name

string

The name given to a Bucket.

Bucket names must be between 3 and 63 characters long must be made of lowercase letters, numbers, dots (periods), and dashes (hyphens). Bucket names must begin and end with a lowercase letter or number. Bucket names can’t contain consecutive dots or dashes. Bucket names that resemble IP addresses are not allowed.

Bucket and BackupVault names exist in a global namespace and therefore must be unique.

region

string

the region in which this backup-vault should be created within.

sse_kp_customer_root_key_crn

string

The CRN for a KeyProtect root key.

crn

string

The CRN for a COS BackupVault.

service_instance_crn

string

A COS ServiceInstance CRN.

time_created

string

creation time of the backup-vault. Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

time_updated

string

time of last update to the backup-vault Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

bytes_used

integer

byte useage of the backup-vault. This should include all usage, including non-current versions. A maximum value is not defined.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

Delete an empty Backup Vault

DELETE /backup_vaults/{backup_vault_name}

Delete the Backup Vault.

Requires that the BackupVault not contain any RecoveryRanges.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for deleting a backup vault.

  • cloud-object-storage.backup_vault.delete_backup_vault

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-vault.delete

Request

Response

204 - Successful operation

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

List RecoveryRanges on a backup vault

GET /backup_vaults/{backup_vault_name}/recovery_ranges

List RecoveryRanges on a backup vault. Lists all available ranges for all source resources by default. The `?source_resource_crn` query parameter will limit the list to only ranges for the specified resource.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for listing the recovery ranges in a backup vault.

  • cloud-object-storage.backup_vault.list_recovery_ranges

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-recovery-range.list

Request

Path Parameters

Query Parameters

token

the continuation token for controlling pagination.

Response

200 - Successful operation

next

NextPagination

Pagination response body

recovery_ranges

array

A list of recovery ranges

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

get RecoveryRange info

GET /backup_vaults/{backup_vault_name}/recovery_ranges/{recovery_range_id}

Get info for a specific RecoveryRange.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for viewing a recovery range a backup vault.

  • cloud-object-storage.backup_vault.get_recovery_range

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-recovery-range.read

Request

Response

200 - Successful operation

source_resource_crn

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

backup_policy_name

string

The name granted to the policy. Validation : * chars limited to alphanumeric, underscore, hyphen and period

range_start_time

string

The point in time at which backup coverage of the sourceResource begins.

Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format

range_end_time

string

the point in time at which backup coverage of the sourceResource ends. Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

range_create_time

string

The time at which this recoveryRange was initially created.

Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format

NOTE : this can be before the start-time.

retention

DeleteAfterDaysWithIndefinite

The retention configuration for a RecoveryRange. This variant allows for indefinite retention to be reported.

recovery_range_id

string

A UUID that uniquely identifies a resource.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

patch RecoveryRange info

PATCH /backup_vaults/{backup_vault_name}/recovery_ranges/{recovery_range_id}

Update a RecoveryRange via JSON-merge-patch semantics.

This request only supports increasing the `retention.delete_after_days` value.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for updating a recovery range on a backup vault.

  • cloud-object-storage.backup_vault.put_retention

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-recovery-range.update

Request

Request Body

The RecoveryRange configuration elements that are to be changed.

Response

200 - Successful operation

source_resource_crn

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

backup_policy_name

string

The name granted to the policy. Validation : * chars limited to alphanumeric, underscore, hyphen and period

range_start_time

string

The point in time at which backup coverage of the sourceResource begins.

Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format

range_end_time

string

the point in time at which backup coverage of the sourceResource ends. Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

range_create_time

string

The time at which this recoveryRange was initially created.

Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format

NOTE : this can be before the start-time.

retention

DeleteAfterDaysWithIndefinite

The retention configuration for a RecoveryRange. This variant allows for indefinite retention to be reported.

recovery_range_id

string

A UUID that uniquely identifies a resource.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

Initiate a Restore

POST /backup_vaults/{backup_vault_name}/restores

Initiates a restore operation against some RecoveryRange to some destination bucket.

The following shall be validated. Any failure to validate shall cause a HTTP 400 to be returned.

* The specified RecoveryRange must exist
* The restore time must be within the RecoveryRange
* the target-bucket must exist and be able to be contacted by the Backup Vault
* target-bucket must have versioning-on
* the Backup Vault must have `cloud-object-storage.bucket.restore_sync` permissions on the target-bucket

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for triggering a restore on a backup vault.

  • cloud-object-storage.backup-vault.post_restore

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-restore.create

Request

Request Body

RestorePrototype

A restore config

recovery_range_id

Required *

string

A UUID that uniquely identifies a resource.

restore_type

Required *

RestoreType

The type of restore to support. More options will be available in the future.

restore_point_in_time

Required *

string

Timestamp format used throughout the API.

Accepts the following formats:

YYYY-MM-DDTHH:mm:ssZ YYYY-MM-DDTHH:mm:ss YYYY-MM-DDTHH:mm:ss-hh:mm YYYY-MM-DDTHH:mm:ss+hh:mm YYYY-MM-DDTHH:mm:ss.sssZ YYYY-MM-DDTHH:mm:ss.sss YYYY-MM-DDTHH:mm:ss.sss-hh:mm YYYY-MM-DDTHH:mm:ss.sss+hh:mm

target_resource_crn

Required *

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

Response

201 - Successful operation

recovery_range_id

string

A UUID that uniquely identifies a resource.

restore_type

RestoreType

The type of restore to support. More options will be available in the future.

restore_point_in_time

string

Timestamp format used throughout the API.

Accepts the following formats:

YYYY-MM-DDTHH:mm:ssZ YYYY-MM-DDTHH:mm:ss YYYY-MM-DDTHH:mm:ss-hh:mm YYYY-MM-DDTHH:mm:ss+hh:mm YYYY-MM-DDTHH:mm:ss.sssZ YYYY-MM-DDTHH:mm:ss.sss YYYY-MM-DDTHH:mm:ss.sss-hh:mm YYYY-MM-DDTHH:mm:ss.sss+hh:mm

target_resource_crn

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

source_resource_crn

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

restore_id

string

A UUID that uniquely identifies a resource.

restore_status

RestoreStatus

The current status for this restore operation.

initializing: The operation is initializing. Do not expect to see restored objects on the target bucket. running : The operation is ongoing. Expect to see some restored objects on the target bucket. complete: The operation has completed successfully. failed: The operation has completed unsuccessfully.

init_time

string

The time at which this restore was initiated Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

complete_time

string

The time at which this restore ended (in both success and error cases) Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

restore_percent_progress

integer

reports percent-doneness of init. Only present when restore_status=running.

error_cause

string

Only present when restore_status=failed.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

List Restores

GET /backup_vaults/{backup_vault_name}/restores

List all current and complete restores.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for listing restores on a backup vault.

  • cloud-object-storage.backup_vault.list_restores

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-restore.list

Request

Path Parameters

Query Parameters

token

the continuation token for controlling pagination.

Response

200 - Successful operation

next

NextPagination

Pagination response body

restores

array

A collection of active and completed restore operations.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

Get Restore

GET /backup_vaults/{backup_vault_name}/restores/{restore_id}

Introspect on a specific restore.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

Allows for viewing a restore on a backup vault.

  • cloud-object-storage.backup_vault.get_restore

Auditing

Calling this method generates the following auditing event.

  • cloud-object-storage.backup-restore.read

Request

Response

200 - Successful operation

recovery_range_id

string

A UUID that uniquely identifies a resource.

restore_type

RestoreType

The type of restore to support. More options will be available in the future.

restore_point_in_time

string

Timestamp format used throughout the API.

Accepts the following formats:

YYYY-MM-DDTHH:mm:ssZ YYYY-MM-DDTHH:mm:ss YYYY-MM-DDTHH:mm:ss-hh:mm YYYY-MM-DDTHH:mm:ss+hh:mm YYYY-MM-DDTHH:mm:ss.sssZ YYYY-MM-DDTHH:mm:ss.sss YYYY-MM-DDTHH:mm:ss.sss-hh:mm YYYY-MM-DDTHH:mm:ss.sss+hh:mm

target_resource_crn

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

source_resource_crn

string

The CRN for a COS Bucket.

Note that Softlayer CRNs do not contain dashes within the service_instance_id, whereas regular CRNs do. Although bucket backup is not supported for softlayer accounts, this need not be enforced at the CRN parsing level.

restore_id

string

A UUID that uniquely identifies a resource.

restore_status

RestoreStatus

The current status for this restore operation.

initializing: The operation is initializing. Do not expect to see restored objects on the target bucket. running : The operation is ongoing. Expect to see some restored objects on the target bucket. complete: The operation has completed successfully. failed: The operation has completed unsuccessfully.

init_time

string

The time at which this restore was initiated Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

complete_time

string

The time at which this restore ended (in both success and error cases) Returns "YYYY-MM-DDTHH:mm:ss.sssZ" timestamp format.

restore_percent_progress

integer

reports percent-doneness of init. Only present when restore_status=running.

error_cause

string

Only present when restore_status=failed.

400 - Bad Request, or the Backup feature has not been enabled.

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

401 - Unauthorized

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

403 - Forbidden

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

404 - Resource not found

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

500 - Internal Service Error

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.

503 - Unavailable

status_code

integer

The HTTP status code returned.

trace

string

A.K.A. request-id

errors

array

a Container of errors.