You need to enable JavaScript to run this app.
PrivateLink

PrivateLink

Copy page
Download PDF
Gateway endpoint
CreateVpcGatewayEndpoint - Creating the gateway endpoint instance
Copy page
Download PDF
CreateVpcGatewayEndpoint - Creating the gateway endpoint instance
Call the CreateVpcGatewayEndpoint API to create a gateway endpoint.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Action String required Example: CreateVpcGatewayEndpoint​
Action to execute. Set the value to CreateVpcGatewayEndpoint.​
​
Version String required Example: 2020-04-01​
API version. The current version is 2020-04-01.​
​
VpcId String required Example: vpc-bp15zkdt37pq72zv****​
The ID of the VPC to which the gateway endpoint belongs.​
You can call the DescribeVpcs API to get the VPC ID.​
​
ServiceId String required Example: gwepsvc-2fe630gurkl37k5gfuy33****​
The ID of the gateway endpoint service to be associated.​
You can call the DescribeVpcGatewayEndpointServices API to obtain the ID of the gateway endpoint service.​
​
EndpointName String optional Example: endpoint-01​
Name of the gateway endpoint.​
  • Must start with a letter, number, or Chinese character. May include letters, numbers, Chinese characters, and the following symbols: periods (.), underscores (_), and hyphens (-).​
  • Must be 1 to 128 characters.​
  • If left blank, it defaults to the ID of the gateway endpoint.​
​
ClientToken String optional Example: 123e4567-e89b-12d3-a456-42665544****​
The Client Token that is used to ensure the request idempotency.​
  • This parameter value is auto-generated by the client. Ensure uniqueness across requests, preventing duplicate actions caused by multiple client retries during API timeouts or server internal errors.​
  • Must not exceed 64 ASCII characters.​
  • If you do not set this parameter, idempotency check is not performed.​
​
Description String optional Example: GatewayEndpoint​
The description of the gateway endpoint. The default value is an empty string.​
  • Must start with a letter, number, or Chinese character. May include letters, numbers, Chinese characters, and the following symbols: commas (,), periods (.), underscores (_), spaces ( ), equal signs (=), hyphens (-), full-width commas ( , ), and full-width periods ( 。 ).​
  • The length limit is 0 to 255 characters.​
​
ProjectName String optional Example: default​
Name of the project to which the gateway endpoint belongs.​
​
VpcPolicy String optional Example: { "Statement" : [ { "Effect": "Allow", "Principal": "*", "Action": "*", "Resource": "*"} ] }​
Access policy for the gateway endpoint. If left blank, it defaults to default policy. The default policy allows the gateway endpoint to access all bucket resources of the Torch Object Storage (TOS).​
For detailed descriptions of each field in the access policy, see Bucket policy parameter reference.​
​
Tags.N.Key String optional Example value: k1​
The tag key of the endpoint user tag.​
  • The length limit is 1 to 128 characters.​
  • Case-sensitive. Must not start with volc: or sys: in any case form.​
  • Must not start or end with a space.​
  • May include letters, numbers, spaces ( ), underscores (_), periods (.), half-width colons (:), slashes (/), equal signs (=), plus signs (+), and at signs (@).​
tip​
Duplicate tag keys are not allowed for the same resource.​
​
Tags.N.Value String optional Example: v1​
The tag value of the endpoint user tag.​
  • Must be 0 to 255 characters.​
  • Case-sensitive. Must not start or end with a space.​
  • May include letters, numbers, spaces ( ), underscores (_), periods (.), half-width colons (:), slashes (/), equal signs (=), plus signs (+), minus signs (-) and at signs (@).​
tip​
To provide this parameter, provide Tags.N.Key first.​
​
​
Response parameters​
RequestId String optional Example: 0ED8D006-F706-4D23-88ED-E11ED28D****​
Request ID.​
​
EndpointId String optional Example: gwep-273yuq6q7bgn47fap8squ****​
ID of the gateway endpoint.​
​
​
Request examples​
​
GET /?Action=CreateVpcGatewayEndpoint&Version=2020-04-01&VpcId=vpc-bp15zkdt37pq72zv****&ServiceId=gwepsvc-2fe630gurkl37k5gfuy33****&EndpointName=endpoint-01&ClientToken=123e4567-e89b-12d3-a456-42665544****&Description=GatewayEndpoint&ProjectName=default&VpcPolicy={​
"Statement" : [​
{​
"Effect": "Allow",​
"Principal": "*",​
"Action": "*",​
"Resource": "*"​
}​
]​
}&Tags.1.Key=k1&Tags.1.Value=v1​
Host: privatelink.cn-guangzhou.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-guangzhou/privatelink/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
Response examples​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "CreateVpcGatewayEndpoint",​
"Version": "2020-04-01",​
"Service": "privatelink",​
"Region": "cn-guangzhou"​
},​
"Result": {​
"EndpointId": "gwep-273yuq6q7bgn47fap8squ****",​
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28D****"​
}​
}​
​
Error codes​
This section displays only the error codes of the current API. For more error codes, see Common error codes.​
​
Status code​
Error codes​
Error message​
Notes​
400​
IdempotentParameterMismatch​
The request uses the same ClientToken as a previous, but non-identical request. Do not reuse a ClientToken with different requests, unless the requests are identical.​
Do not reuse the same ClientToken across different requests, as this request uses a ClientToken identical to another request.​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
The specified ClientToken parameter format is invalid.​
400​
InvalidDescription.Malformed​
The specified Description is malformed.​
The format of specified Description is invalid.​
400​
InvalidName.Malformed​
The specified Name is malformed.​
The specified Name parameter format is invalid.​
400​
InvalidPolicy.Action.Malformed​
The specified Policy.Action is malformed.​
The specified Policy.Action parameter format is invalid.​
400​
InvalidPolicy.Effect.Malformed​
The specified Policy.Effect is malformed.​
The specified Policy.Effect parameter is invalid.​
400​
InvalidPolicy.Principal.Malformed​
The specified Policy.Principal is malformed.​
The specified Policy.Principal parameter format is invalid.​
400​
InvalidPolicy.Resource.Malformed​
The specified Policy.Resource is malformed.​
The specified Policy.Resource parameter format is invalid.​
400​
InvalidPolicy.Statement.Malformed​
The specified Policy.Statement is malformed.​
The specified Policy.Statement parameter format is invalid.​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'.​
This request does not contain required parameters. Ensure that your request includes all required parameters, such as XXX.​
tip​
Here, XXX represents the name of the missing parameter.​
400​
InvalidProjectName.Malformed​
The specified ProjectName is malformed.​
The specified ProjectName format is invalid.​
400​
InvalidIncorrectOrder.Malformed​
The specified index order is malformed.​
The specified index order format is invalid.​
400​
InvalidTagKey.Malformed​
The specified TagKey is malformed.​
The specified TagKey parameter format is invalid.​
400​
InvalidTagValue.Malformed​
The specified TagValue is malformed.​
The specified TagValue parameter format is invalid.​
400​
LimitExceeded.TagOperation​
You've reached the limit on the number of tags that you can operate at a time.​
You have reached the maximum number of tag entries that can be operated on in a single request.​
400​
InvalidVpcAccount.Mismatched​
The specified VPC and account don't match.​
The specified VPC and account do not match.​
400​
InvalidPolicy.Condition.Malformed​
The specified Policy.Condition is malformed.​
The specified Policy.Condition parameter format is invalid.​
400​
InvalidPolicy.ConditionKey.Malformed​
The specified Policy.ConditionKey is malformed.​
The specified Policy.ConditionKey parameter format is invalid.​
400​
InvalidPolicy.ConditionOperator.Malformed​
The specified Policy.ConditionOperator is malformed.​
The specified Policy.ConditionOperator parameter format is invalid.​
400​
InvalidPolicy.ConditionValue.Malformed​
The specified Policy.ConditionValue is malformed.​
The specified Policy.ConditionValue parameter format is invalid.​
400​
InvalidEndpoint.ServiceMisMatch​
The specified endpoint and service don't match.​
The specified endpoint and endpoint service do not match.​
404​
InvalidVpc.NotFound​
The specified vpc does not exist.​
The specified VPC does not exist.​
404​
InvalidGatewayEpsvc.NotFound​
The specified GatewayEndpointService does not exist.​
The specified gateway endpoint service does not exist.​
404​
InvalidProject.NotFound​
The specified Project does not exist.​
The specified project does not exist.​
409​
InvalidGatewayEp.Conflict​
The GatewayEndpoint of the vpc has been created.​
A gateway endpoint has already been created for this VPC.​
412​
IdempotentProcessing​
The request uses the same ClientToken as a previous one that is still in process.​
The idempotent request is in progress.​
​
Last updated: 2026.08.13 10:54:50