Skip to main content

replication_sources

Creates, updates, deletes, gets or lists a replication_sources resource.

Overview​

Namereplication_sources
TypeResource
Idoci.object_storage.replication_sources

Fields​

The following fields are returned by SELECT queries:

The details of a replication source bucket that replicates to a target destination bucket.

NameDatatypeDescription
policyNamestringThe name of the policy.
sourceBucketNamestringThe source bucket replicating data from.
sourceRegionNamestringThe source region replicating data from, for example "us-ashburn-1".

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectnamespaceName, bucketName, regionopc-client-request-id, page, limitList the replication sources of a destination bucket.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketNamestringThe name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
namespaceNamestringThe Object Storage namespace used for the request.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerFor list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
opc-client-request-idstringThe client request ID for tracing.
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).

SELECT examples​

List the replication sources of a destination bucket.<br />

SELECT
policyName,
sourceBucketName,
sourceRegionName
FROM oci.object_storage.replication_sources
WHERE namespaceName = '{{ namespaceName }}' -- required
AND bucketName = '{{ bucketName }}' -- required
AND region = '{{ region }}' -- required
AND opc-client-request-id = '{{ opc-client-request-id }}'
AND page = '{{ page }}'
AND limit = '{{ limit }}'
;