Editing an Object Storage Private Endpoint
Update an Object Storage private endpoint's configuration.
You can update the following settings for a private endpoint:
- Access targets
- Tagging
You can't update the following:
- The compartment where the private endpoint resides.
- Private endpoint name
- DNS prefix
- Network security group
Use the oci os private-endpoint update command and required parameters to edit a private endpoint in Object Storage:
oci os private-endpoint update --pe-name private_endpoint_name --name private_endpoint_name --access-targets access_targets [OPTIONS]where
access_targetslists one or more access targets being updated to the new settings using the following syntax:'[{"namespace":"namespace", "compartmentId":"compartment_ocid", "bucket":"bucket"}]'For example:
oci os private-endpoint update --pe-name pe1 --name pe1 --access-targets '[{"namespace":"MyNamespace", "compartmentId":"ocid1.tenancy.oc1..exampleuniqueID", "bucket":"*"}]' { "opc-work-request-id": "f52e20e6-2c21-4544-be98-c7f9b590c9db" }For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the following API operation:
POST n/object_storage_namespace/pe/peName