Getting Tenancy's Amazon S3 Compatibility API and Swift API Compartment Designations

Describes to get your tenancy's Amazon S3 Compatibility API and Swift API compartment designations.

  • This task is not available in the Console.

  • Use this CLI command to display metadata associated with the Amazon S3 and Swift compartments for the specified namespace in your tenancy.

    oci os ns get-metadata --namespace <object_storage_namespace>

    For example:

    oci os ns get-metadata --namespace MyNamespace
    {
        "data": {
        "default-s3-compartment-id": "ocid.compartment.oc1..exampleuniqueID",
        "default-swift-compartment-id": "ocid.compartment.oc1..exampleuniqueID",
        "namespace": "MyNamespace"
        }
    }							
  • For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.

    Use the following operation to get your default Amazon S3 Compatibility API and Swift API compartment designations, and change those compartment designations:

    GetNamespaceMetadata