Batch Adding Whitelist Records of a VPC Endpoint Service
Function
This API is used to batch add whitelist records for VPC endpoint services of the current user. The description can be added.
Note
Your account is in the whitelist of your own VPC endpoint service by default.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
 - If you are using identity policy-based authorization, the following identity policy-based permissions are required. 
     
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpcep:endpointServices:createPermissions
Permission_management
endpointServices *
-
- vpcep:permissions:update
 
-
-
- 
            
vpcep:VpceEndpointOrgPath
 - 
            
vpcep:VpceEndpointOwner
 
 
URI
POST /v1/{project_id}/vpc-endpoint-services/{vpc_endpoint_service_id}/permissions/batch-create
| 
         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.  | 
      
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         permissions  | 
       
         Yes  | 
       
         Array of EpsAddPermissionRequest objects  | 
       
         Specifies the whitelist records of the VPC endpoint service.  | 
      
| 
         permission_type  | 
       
         No  | 
       
         String  | 
       
         Specifies the whitelist type of the VPC endpoint service. 
  | 
      
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         permission  | 
       
         Yes  | 
       
         String  | 
       
         The permission format is iam:domain::domain_id or organizations:orgPath::org_path. 
 domain_id can contain a maximum of 64 characters, including only letters and digits. org_path can contain a maximum of 1,024 characters, including only letters, digits, forward slashes (/), and hyphens (-). Example: iam:domain::6e9dfd51d1124e8d8498dce894923a0dd or organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/*  | 
      
| 
         description  | 
       
         Yes  | 
       
         String  | 
       
         Specifies the description of a whitelist record of a VPC endpoint service.  | 
      
Response Parameters
Status code: 200
| 
         Parameter  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|
| 
         permissions  | 
       
         Array of EpsPermission objects  | 
       
         Specifies the whitelist of the 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 or organizations:orgPath::org_path. 
 domain_id can contain only letters and digits. org_path can contain only letters, digits, forward slashes (/), and hyphens (-). You can also enter an asterisk () for domain_id or org_path, which indicates that this VPC endpoint service allows accesses from any VPC endpoint. Example: iam:domain::6e9dfd51d1124e8d8498dce894923a0dd or organizations:orgPath::o-3j59d1231uprgk9yuvlidra7zbzfi578/r-rldbu1vmxdw5ahdkknxnvd5rgag77m2z/ou-7tuddd8nh99rebxltawsm6qct5z7rklv/  | 
      
| 
         permission_type  | 
       
         String  | 
       
         Specifies the whitelist type of the VPC endpoint service. 
  | 
      
| 
         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.  | 
      
Example Requests
Batch adding whitelist records of a VPC endpoint service
POST https://{endpoint}/v1/{project_id}/vpc-endpoint-services/c07132bf-4071-439a-9ff3-2068eb45092f/permissions/batch-create
{
  "permissions" : [ {
    "permission" : "*",
    "description" : "Specifies APIs for batch adding whitelist records of a VPC endpoint service."
  }, {
    "permission" : "iam:domain::4dbb0ce8766f44a9bfd08ccf8fc02397",
    "description" : "test"
  } ]
}
  Example Responses
Status code: 200
The server has successfully processed the request.
{
  "permissions" : [ {
    "id" : "ab42a58b-6f8e-43b3-9400-aaf0e393ee0d",
    "permission" : "iam:domain::4dbb0ce8766f44a9bfd08ccf8fc02397",
    "description" : "test",
    "created_at" : "2022-06-16T10:03:27Z"
  }, {
    "id" : "dfaaeff1-858d-4631-83c4-be3548a07935",
    "permission" : "*",
    "description" : "",
    "created_at" : "2022-06-16T10:03:27Z"
  } ]
}
  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.