replication_sources
Creates, updates, deletes, gets or lists a replication_sources resource.
Overview​
| Name | replication_sources |
| Type | Resource |
| Id | oci.object_storage.replication_sources |
Fields​
The following fields are returned by SELECT queries:
- list
The details of a replication source bucket that replicates to a target destination bucket.
| Name | Datatype | Description |
|---|---|---|
policyName | string | The name of the policy. |
sourceBucketName | string | The source bucket replicating data from. |
sourceRegionName | string | The source region replicating data from, for example "us-ashburn-1". |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | namespaceName, bucketName, region | opc-client-request-id, page, limit | List 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.
| Name | Datatype | Description |
|---|---|---|
bucketName | string | The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1 |
namespaceName | string | The Object Storage namespace used for the request. |
region | string | OCI 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) |
limit | integer | For 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-id | string | The client request ID for tracing. |
page | string | For 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
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 }}'
;