Batch Adding or Deleting Whitelist Records of a VPC Endpoint Service
Function
This API is used to batch add or delete whitelist records of a VPC endpoint service.
Your account is in the whitelist of your own VPC endpoint service by default.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/action
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
vpc_endpoint_service_id |
Yes |
String |
Specifies the ID of the VPC endpoint service. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. |
Content-Type |
No |
String |
Specifies the MIME type of the request body. Default value application/json is recommended. For APIs used to upload objects or images, the MIME type varies depending on the flow type. |
Response Parameters
Status code: 200
Example Requests
-
Adding a Whitelist for a VPC Endpoint Service
POST https://{endpoint}/v1/{project_id}/vpc-endpoint-services/4189d3c2-8882-4871-a3c2- d380272eed88/permissions/action { "permissions" : [ "iam:domain::fc973eea581490997e82ea11a1d0101" ], "action" : "add" }
-
Removing a VPC Endpoint Service from the Whitelist
POST https://{endpoint}/v1/{project_id}/vpc-endpoint-services/4189d3c2-8882-4871-a3c2- d380272eed88/permissions/action { "permissions" : [ "iam:domain::fc973eea581490997e82ea11a1d0101" ], "action" : "remove" }
Example Responses
Status code: 200
The server has successfully processed the request.
{ "permissions" : [ "iam:domain::5fc973eea581490997e82ea11a1d0101", "iam:domain::5fc973eea581490997e82ea11a1d0102" ] }
Status Codes
Status Code |
Description |
---|---|
200 |
The server has successfully processed the request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.