Membuat titik akhir.
Deskripsi operasi
CreateVpcEndpoint adalah operasi asinkron. Setelah Anda mengirim permintaan, sistem mengembalikan ID Instans, tetapi Titik akhir belum dibuat. Node latar belakang masih dalam proses. Anda dapat memanggil GetVpcEndpointAttribute untuk mengkueri status pembuatan Titik akhir:
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:CreateVpcEndpoint |
create |
*VpcEndpoint
*SecurityGroup
*VSwitch
*VPC
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah titik akhir. |
cn-huhehaote. |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid: |
false. |
| EndpointName |
string |
No |
Nama titik akhir. |
test. |
| EndpointType |
string |
No |
Tipe titik akhir. Nilai valid: |
Interface. |
| ZonePrivateIpAddressCount |
integer |
No |
Jumlah alamat IP privat untuk ENI di setiap zona. Atur nilainya menjadi 1. |
1 |
| EndpointDescription |
string |
No |
Deskripsi titik akhir. |
This is my Endpoint. |
| VpcId |
string |
Yes |
VPC tempat titik akhir berada. |
vpc-hp356stwkxg3fn2xe**** |
| ServiceId |
string |
No |
Layanan titik akhir yang terkait dengan titik akhir. |
epsrv-hp3xdsq46ael67lo**** |
| ServiceName |
string |
No |
Nama layanan titik akhir yang terkait dengan titik akhir. |
com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3vpx8yqxblby3i**** |
| Zone |
array<object> |
No |
Zona titik akhir. |
|
|
object |
No |
ID zona di wilayah saat ini. |
||
| VSwitchId |
string |
No |
vSwitch di zona tempat Anda ingin membuat antarmuka jaringan elastis (ENI) titik akhir. |
vsw-hp3uf6045ljdhd5zr**** |
| ZoneId |
string |
No |
Zona titik akhir. |
cn-huhehaote-b. |
| ip |
string |
No |
Alamat IPv4 antarmuka jaringan elastis (ENI) titik akhir di zona titik akhir yang ditentukan. |
192.168.XX.XX |
| Ipv6Address |
string |
No |
Alamat IPv6 antarmuka jaringan elastis (ENI) titik akhir di zona titik akhir yang ditentukan. |
2408:4005:34d:****:a58b:62a3:6b55:**** |
| SecurityGroupId |
array |
No |
Grup keamanan yang terkait dengan antarmuka jaringan elastis (ENI) titik akhir. |
sg-hp33bw6ynvm2yb0e**** |
|
string |
No |
Grup keamanan yang terkait dengan antarmuka jaringan elastis (ENI) titik akhir. Grup keamanan mengontrol komunikasi data dari VPC ke antarmuka jaringan elastis (ENI) titik akhir. |
sg-bp1fg655nh68xyz9**** |
|
| ProtectedEnabled |
boolean |
No |
Apakah akan mengaktifkan perlindungan terkelola. Parameter ini hanya berlaku jika permintaan dibuat menggunakan Security Token Service (STS). Nilai valid: |
false. |
| RegionId |
string |
Yes |
Tag. |
cn-huhehaote |
| Tag |
array<object> |
No |
ID kelompok sumber daya. |
rg-acfmy***** |
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag. |
env |
| Value |
string |
No |
Nilai tag. |
prod |
| ResourceGroupId |
string |
No |
Kebijakan akses RAM. Untuk informasi lebih lanjut tentang definisi kebijakan, lihat Elemen kebijakan. |
{ |
| PolicyDocument |
string |
No |
Versi protokol. Nilai valid: |
IPv4 |
| AddressIpVersion |
string |
No |
Apakah akan mendukung afinitas zona untuk nama domain titik akhir saat terhubung ke layanan. Nilai valid: |
false. |
| ZoneAffinityEnabled |
boolean |
No |
ID Wilayah layanan titik akhir. Nilai default adalah wilayah saat ini, yaitu wilayah tempat Anda membuat titik akhir. |
cn-huhehaote. |
| ServiceRegionId |
string |
No |
Nilai bandwidth lintas wilayah. Parameter ini hanya diperlukan jika titik akhir dan layanan titik akhir berada di wilayah yang berbeda. Unit: Mbps. Nilai valid: |
1000 |
| CrossRegionBandwidth |
integer |
No |
Bandwidth lintas wilayah. Parameter ini hanya diperlukan jika Titik akhir dan layanan titik akhir berada di wilayah yang berbeda. Unit: Mbps. Nilai valid:
Catatan
Tentukan parameter ini hanya saat Anda membuat Titik akhir lintas wilayah. |
1000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndpointDomain |
string |
Nama domain Titik akhir. |
ep-hp33b2e43fays7s8****.epsrv-hp3xdsq46ael67lo****.cn-huhehaote.privatelink.aliyuncs.com. |
| RequestId |
string |
ID permintaan. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
| CreateTime |
string |
Pengatur waktu saat Titik akhir dibuat. |
2022-01-02T19:11:12Z |
| EndpointBusinessStatus |
string |
Status bisnis Titik akhir. Nilai valid: |
Normal. |
| EndpointDescription |
string |
Deskripsi titik akhir. |
This is my Endpoint. |
| ServiceId |
string |
ID Layanan titik akhir yang terkait dengan Titik akhir. |
epsrv-hp3vpx8yqxblby3i**** |
| EndpointStatus |
string |
Status Titik akhir. Nilai valid: |
Active. |
| VpcId |
string |
VPC tempat titik akhir berada. |
vpc-hp356stwkxg3fn2xe**** |
| EndpointName |
string |
Nama titik akhir. |
test. |
| ServiceName |
string |
Nama layanan titik akhir yang terkait dengan titik akhir. |
com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3xdsq46ael67lo**** |
| Bandwidth |
integer |
Bandwidth Koneksi titik akhir. Unit: Mbps. |
200 |
| EndpointId |
string |
ID Titik akhir. |
ep-hp33b2e43fays7s8**** |
| ConnectionStatus |
string |
Status koneksi Titik akhir. Nilai valid: |
Disconnected. |
| AddressIpVersion |
string |
Versi protokol. Nilai valid: |
IPv4 |
| ZoneAffinityEnabled |
boolean |
Apakah akan mendukung afinitas zona untuk nama domain titik akhir saat terhubung ke layanan. Nilai valid: |
false. |
| ServiceRegionId |
string |
ID Wilayah Layanan titik akhir. |
cn-huhehaote. |
| CrossRegionBandwidth |
integer |
Nilai bandwidth lintas wilayah Titik akhir. Parameter ini hanya berlaku jika Titik akhir dan Layanan titik akhir berada di Wilayah yang berbeda. Unit: Mbps. |
1000 |
Contoh
Respons sukses
JSONformat
{
"EndpointDomain": "ep-hp33b2e43fays7s8****.epsrv-hp3xdsq46ael67lo****.cn-huhehaote.privatelink.aliyuncs.com",
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0",
"CreateTime": "2022-01-02T19:11:12Z",
"EndpointBusinessStatus": "Normal",
"EndpointDescription": "This is my Endpoint.",
"ServiceId": "epsrv-hp3vpx8yqxblby3i****",
"EndpointStatus": "Active",
"VpcId": "vpc-hp356stwkxg3fn2xe****",
"EndpointName": "test",
"ServiceName": "com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3xdsq46ael67lo****",
"Bandwidth": 200,
"EndpointId": "ep-hp33b2e43fays7s8****",
"ConnectionStatus": "Disconnected",
"AddressIpVersion": "IPv4",
"ZoneAffinityEnabled": false,
"ServiceRegionId": "cn-huhehaote",
"CrossRegionBandwidth": 1000
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointExist | The specified Endpoint already exists. | |
| 400 | EndpointZoneDuplicated | The zone is duplicated for the Endpoint. | |
| 400 | EndpointServiceNotFound | The specified Service does not exist. | |
| 400 | EndpointServiceNotSupportedZone | The specified endpoint service does not support the zone. | |
| 400 | VSwitchNotFound | The specified VSwitch does not exist. | |
| 400 | SecurityGroupNotFound | The specified security group does not exist. | |
| 400 | VpcTunnelNotFound | The specified VPC tunnel does not exist. | |
| 400 | VpcNotFound | The specified VPC does not exist. | |
| 400 | GenerateResourceIdFailed | Failed to generate ResourceId. | |
| 400 | QuotaMisMatched | The resource you applied for has exceeded the quota. | |
| 400 | EndpointMustContainSecurityGroup | The specified endpoint must have at least one security group. | |
| 400 | EndpointDuplicated | The endpoint of the service already exists and cannot be created again. | |
| 400 | EndpointServiceDeleted | The specified Service is already deleted. | |
| 400 | EndpointServiceResourceNotFound | The specified service resource is not found. | |
| 400 | SecurityGroupTypeNotSupport | The specified security group type is not supported. | |
| 400 | EniIpUnavailable | The specified IP address is unavailable. | |
| 400 | EndpointServiceNotAuthorized | The specified endpoint service is not authorized to user. | |
| 400 | SecurityGroupTypeOnlySingleTypeSupporteded | The specified security group only support one type. | |
| 400 | QuotaExceeded.IpQuotaPerEp | The quota of %s is exceeded, usage %s/%s. | |
| 400 | Mismatch.EndpointType | The %s is mismatched for %s and %s. | |
| 400 | IncorrectStatus.VpcEndpointService | The status of %s [%s] is incorrect. | |
| 400 | CheckServiceLinkRoleError | The ServiceLink role check error. | |
| 400 | ResourceNotEnough.VSwitchIp | The specified resource of VSwitchIp is not enough. | |
| 400 | VSwitchStatusNotAllowed | The specified vswitch status is not Available. | |
| 400 | QuotaExceeded.epZonePerEndpoint | The quota of %s is exceeded, usage %s/%s. | |
| 400 | QuotaExceeded.totalEpPerVpc | The quota of %s is exceeded, usage %s/%s. | |
| 400 | QuotaExceeded.totalIdleEndpoint | The quota of %s is exceeded, usage %s/%s. | |
| 400 | OperationDenied.EndpointPolicyNotSupport | The operation is not allowed because of EndpointPolicyNotSupport. | |
| 400 | OperationDenied.PrivateDomainStatusNotSupport | The operation is not allowed because of %s. | |
| 400 | OperationDenied.PrivateDomainNotSupport | The operation is not allowed because of PrivateDomainNotSupport. | |
| 400 | DependencyViolation.PrivateDnsName | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | GatewayLoadBalancerNotSupportSecurityGroup | The gateway load balancer not support security group. | |
| 400 | GatewayLoadBalancerZoneCountDeny | The GatewayLoadBalancer zone count not support | |
| 400 | OperationDenied.EndpointTypeNotSupportDualstack | The specified endpoint type does not support dualstack, only the Interface and GatewayLoadBalancer types support dual stack. | |
| 400 | OperationDenied.EndpointServiceNotSupportDualstack | The specified endpoint service does not support dualstack. | |
| 400 | OperationDenied.VSwitchNotSupportDualstack | The specified VSwitch does not support dualstack. | |
| 400 | OperationDenied.AddressIpVersionNotSupportSpecifyIpv6 | The AddressIpVersion of the endpoint does not support specifying IPv6 address. | |
| 400 | IllegalParam.Ip | The specified parameter IP is invalid. | |
| 400 | IllegalParam.Ipv6Address | The specified parameter Ipv6Address is invalid. | |
| 400 | IllegalParam.AddressIpVersion | The specified parameter AddressIpVersion is invalid. | |
| 400 | SpecifiedAlbNotSupport | The specified alb %s is not supported. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.