Deleting the Policy of a Gateway VPC Endpoint (To Be Discontinued)
Function
This API is used to delete the policy of a gateway VPC endpoint. This API will not be used anymore and is not recommended.
Calling Method
For details, see Calling APIs.
URI
DELETE /v1/{project_id}/vpc-endpoints/{vpc_endpoint_id}/policy
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
vpc_endpoint_id |
Yes |
String |
Specifies the ID of the VPC endpoint. |
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
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the unique ID of the VPC endpoint. |
service_type |
String |
Specifies the type of the VPC endpoint service that the VPC endpoint is used to connect to.
|
status |
String |
Specifies the VPC endpoint status.
|
active_status |
Array of strings |
Specifies the account status.
|
endpoint_service_name |
String |
Specifies the name of the VPC endpoint service. |
marker_id |
Integer |
Specifies the packet ID of the VPC endpoint. |
endpoint_service_id |
String |
Specifies the ID of the VPC endpoint service. |
ip |
String |
Specifies the IP address for accessing the associated VPC endpoint service. This parameter is returned only under the following conditions:
|
vpc_id |
String |
Specifies the ID of the VPC where the VPC endpoint is to be created. |
created_at |
String |
Specifies when the VPC endpoint was created. The UTC time format YYYY-MM-DDTHH:MM:SSZ is used. |
updated_at |
String |
Specifies when the VPC endpoint was updated. The UTC time format YYYY-MM-DDTHH:MM:SSZ is used. |
project_id |
String |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
tags |
Array of TagList objects |
Specifies the tag list. If no tag is matched, an empty array is returned. |
error |
Array of QueryError objects |
Specifies the error message. This field is returned when the VPC endpoint is abnormal, that is, the value of status is failed. |
whitelist |
Array of strings |
Specifies the whitelist for controlling access to the VPC endpoint. If you do not specify this parameter, an empty whitelist will be returned. This parameter is available only when you create a VPC endpoint for connecting to an interface VPC endpoint service. |
enable_whitelist |
Boolean |
Specifies whether access control is enabled.
|
routetables |
Array of strings |
Specifies the route table ID list. If this parameter is not specified, the ID of the default route table of the VPC is returned. This parameter is available when you create a VPC endpoint for connecting to a gateway VPC endpoint service. |
description |
String |
Specifies the description field. The value can contain characters such as letters and digits, but cannot contain angle brackets (< or >). |
policy_statement |
Array of PolicyStatement objects |
Specifies the policy of the gateway VPC endpoint. This parameter is only available when enable_policy of the VPC endpoint services for OBS and SFS is set to true. |
policy_document |
Object |
Specifies the policy of the VPC endpoint. This parameter is only available when enable_policy of the VPC endpoint services is set to true. The default value indicates full access permission. (This parameter is not available for the VPC endpoint services for OBS and SFS.) |
endpoint_pool_id |
String |
(To be discarded) Specifies the ID of the cluster associated with the VPC endpoint. |
public_border_group |
String |
Specifies the information about the public border group associated with the VPC endpoint. This parameter is returned only when the VPC endpoint is associated with an edge pool. |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Specifies the tag key. key cannot be left blank. A key can contain 1 to 128 characters. A key can contain UTF-8 letters, digits, spaces, and the following special characters _ . : = + - @ Keys cannot start with _sys_ because it indicates a system tag. A key cannot start or end with a space. |
value |
String |
Specifies the tag value. A value can contain 0 to 255 characters. A value can contain UTF-8 letters, digits, spaces, and the following special characters _ . : / = + - @ A value can be an empty string. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_message |
String |
Error message. |
Parameter |
Type |
Description |
---|---|---|
Effect |
String |
|
Action |
Array of strings |
Specifies OBS access permissions. |
Resource |
Array of strings |
Specifies the OBS object. |
Example Requests
Deleting the policy of a gateway VPC endpoint
DELETE https://{endpoint}/v1/{project_id}/vpc-endpoints/938c8167-631e-40a4-99f9-493753fbd16b/policy
Example Responses
Status code: 200
The server has successfully processed the request.
{ "id" : "938c8167-631e-40a4-99f9-493753fbd16b", "status" : "accepted", "tags" : [ ], "jobId" : "endpoint_add_938c8167-631e-40a4-99f9-493753fbd16b", "marker_id" : 302035929, "active_status" : [ "active" ], "vpc_id" : "0da03835-1dcf-4361-9b87-34139d58dd59", "service_type" : "gateway", "project_id" : "0605767a3300d5762fb7c0186d9e1779", "routetables" : [ "99477d3b-87f6-49d2-8f3b-2ffc72731a38" ], "created_at" : "2022-08-03T03:03:54Z", "updated_at" : "2022-08-03T03:03:57Z", "endpoint_service_id" : "4651bc78-5cec-41b7-b448-f77326ebbed0", "endpoint_service_name" : "br-abc-aaa1.obs_test.4651bc78-5cec-41b7-b448-f77326ebbed0", "specification_name" : "default", "enable_status" : "enable", "description" : "", "endpoint_pool_id" : "b0ad6a4f-55c0-43f1-a26d-278639661fc2" }
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.