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
- Security attributes
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/peNameThese are the available payload properties:
- name: The name of the private endpoint.
- accessTargets: A list of targets that can be accessed by the private endpoint.
- freeformTags (optional): Free-form tags for this resource.
- definedTags (optional): Defined tags for this resource.
- namespace The Object Storage namespace associated with the private endpoint.
- securityAttributes (optional): Security attributes for this resource. Each key is predefined and scoped to a namespace.
Example:
{"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}
See also UpdatePrivateEndpoint.