Tagging a Private Endpoint in Object Storage at Creation

Add metadata to an Object Storage private endpoint when you first create it. This metadata enables you to define keys and values and associate them with resources.

    1. Begin the steps for creating an Object Storage private endpoint using the Oracle Cloud Infrastructure Console as described in Creating a Private Endpoint.
    2. At the end of the Create private endpoint dialog box, click Show advanced options. The advanced options tabs appear.
    3. Click the Tags tab.
    4. Complete the following. See Overview of Tagging for descriptions of these fields.
      • Tag namespace

      • Tag key

      • Value

    5. Click +Additional tag to add another tag. Click X to remove the associated tag.

    You can create the private endpoint or continue with other settings.

  • Use the --defined-tags or --freeform-tags options when running the oci os private-endpoint create command to tag a private endpoint at the time of its creation:

    oci os private-endpoint create --compartment-id compartment_ocid --name name ... --defined-tags JSON_formatted_defined_tag --freeform-tags JSON_formatted_free-form_tag [OPTIONS]

    Provide key-value pair input for --defined-tags and --freeform-tags as valid formatted JSON. See Passing Complex Input and Using a JSON File for Complex Input for information about JSON formatting.

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Include the definedTags and freeformTags attributes and their values when creating the private endpoint.