Batch Adding or Deleting Whitelist Records of a VPC Endpoint Service
Function
Function This API is used to batch delete whitelist records of a VPC endpoint service.
URI
POST /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/batch-delete
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. Minimum: 1 Maximum: 64 |
vpc_endpoint_service_id |
Yes |
String |
Specifies the ID of the VPC endpoint service. Minimum: 1 Maximum: 64 |
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. Minimum: 1 Maximum: 2048 |
Content-Type |
Yes |
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. Minimum: 1 Maximum: 65 |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
permissions |
Yes |
Array of EpsRemovePermissionRequest objects |
Specifies the request body for deleting a whitelist record of a VPC endpoint service. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
permissions |
Array of EpsPermission objects |
Specifies the response body of a whitelist record of a VPC endpoint service. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies primary key IDs of whitelist records of a VPC endpoint service. |
permission |
String |
The permission format is iam:domain::domain_id. ● iam:domain:: is a fixed format. ● domain_id is the account ID of the user that can be connected. The value contains 1 to 64 characters, including letters and digits. The value also can be an asterisk (*).
Minimum: 1 Maximum: 64 |
description |
String |
Specifies the description of a whitelist record of a VPC endpoint service. |
created_at |
String |
Specifies the time when a whitelist record is created. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 405
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 406
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 407
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 408
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 409
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 501
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 502
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 503
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Parameter |
Type |
Description |
---|---|---|
message |
String |
Task error description |
code |
String |
Error code of a task exception. |
Status code: 504
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Specifies the error message returned when a task submission exception occurs. |
Example Requests
Batch deleting whitelist records of a VPC endpoint service
POST https://{endpoint}/v1/{project_id}/vpc-endpoint-services/c07132bf-4071-439a-9ff3-2068eb45092f/permissions/batch-delete { "permissions" : [ { "id" : "b9b6f264-3562-4f62-ba84-c128da20d18d" }, { "id" : "c07132bf-4071-439a-9ff3-2068eb45092f" } ] }
Example Responses
Status code: 200
The server has successfully processed the request.
{ "permissions" : [ ] }
Status Codes
Status Code |
Description |
---|---|
200 |
The server has successfully processed the request. |
400 |
The server failed to process the request. |
401 |
Username and password are required to access the requested page. |
403 |
The access to the requested page is forbidden. |
404 |
The server could not find the requested page. |
405 |
The method specified in the request is not allowed. |
406 |
The response generated by the server could not be accepted by the client. |
407 |
Proxy authentication is required before the request is processed. |
408 |
The request timed out. |
409 |
The request could not be processed due to a conflict. |
500 |
Request failed. A service error occurred. |
501 |
Request failed. The server does not support the requested function. |
502 |
Request failed. The server has received an invalid response from the upstream server. |
503 |
Request failed. The system is unavailable. |
504 |
Gateway timed out. |
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.