Membuat layanan titik akhir.
Deskripsi operasi
-
Sebelum membuat layanan titik akhir, Anda harus membuat resource load balancing yang diaktifkan untuk PrivateLink. Untuk informasi selengkapnya, lihat dokumen referensi.
-
CreateVpcEndpointService adalah operasi asinkron. Setelah memanggil operasi ini, ID instans akan dikembalikan. Layanan titik akhir kemudian dibuat oleh tugas latar belakang. Anda dapat memanggil operasi GetVpcEndpointServiceAttribute untuk mengecek status pembuatan layanan titik akhir:
-
Creating: Layanan titik akhir sedang dibuat.
-
Active: Layanan titik akhir telah aktif.
-
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:CreateVpcEndpointService |
create |
*VpcEndpointService
LoadBalancer
LoadBalancer
NatGateway
LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari layanan titik akhir. Panggil operasi DescribeRegions untuk mendapatkan ID wilayah. |
cn-huhehaote |
| ClientToken |
string |
No |
Token klien yang menjamin idempotensi permintaan. Hasilkan nilai parameter unik dari klien Anda untuk permintaan yang berbeda. ClientToken hanya mendukung karakter ASCII. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| ServiceDescription |
string |
No |
Deskripsi layanan titik akhir. |
This is my EndpointService. |
| AutoAcceptEnabled |
boolean |
No |
Menentukan apakah koneksi titik akhir diterima secara otomatis. Nilai yang valid:
|
false |
| Payer |
string |
No |
Pihak yang membayar. Nilai yang valid:
|
Endpoint |
| ZoneAffinityEnabled |
boolean |
No |
Menentukan apakah afinitas zona diaktifkan untuk resolusi nama domain titik akhir. Nilai yang valid:
|
false |
| ServiceResourceType |
string |
No |
Jenis resource layanan. Nilai yang valid:
Catatan
Pendengar TCPSSL pada instans NLB tidak didukung. |
slb |
| Resource |
array<object> |
No |
Kumpulan resource layanan titik akhir. Anda dapat menambahkan hingga 10 resource saat membuat layanan titik akhir. Setelah pembuatan, tambahkan lebih banyak resource layanan dengan menambahkannya ke titik akhir. |
|
|
object |
No |
Kumpulan resource layanan titik akhir. |
||
| ResourceType |
string |
No |
Jenis resource layanan yang ditambahkan ke layanan titik akhir. Layanan titik akhir mendukung hingga 20 resource layanan. Nilai yang valid:
Catatan
Di wilayah yang mendukung PrivateLink, semua instans CLB dalam virtual private cloud (VPC) dapat digunakan sebagai resource layanan untuk layanan titik akhir. |
slb |
| ResourceId |
string |
No |
ID resource layanan yang ditambahkan ke layanan titik akhir. |
lb-hp32z1wp5peaoox2q**** |
| ZoneId |
string |
No |
ID zona. |
cn-huhehaote-a |
| RegionId |
string |
Yes |
ID wilayah dari layanan titik akhir. Panggil operasi DescribeRegions untuk mendapatkan ID wilayah. |
cn-huhehaote |
ServiceSupportIPv6
deprecated
|
boolean |
No |
Menentukan apakah layanan titik akhir mendukung IPv6. Nilai yang valid:
|
false |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmy***** |
| Tag |
array<object> |
No |
Daftar tag. |
|
|
object |
No |
Daftar tag. |
||
| Key |
string |
No |
Kunci tag dari instans. Anda dapat menentukan hingga 20 kunci tag. Kunci tag tidak boleh berupa string kosong. Kunci tag dapat memiliki panjang maksimal 64 karakter dan tidak boleh diawali dengan |
env |
| Value |
string |
No |
Nilai tag dari instans. Anda dapat menentukan hingga 20 nilai tag. Nilai tag boleh berupa string kosong. Nilai tag dapat memiliki panjang maksimal 128 karakter dan tidak boleh diawali dengan |
prod |
| AddressIpVersion |
string |
No |
Versi IP. Nilai yang valid:
Catatan
Hanya layanan titik akhir yang menggunakan instans NLB atau GWLB sebagai resource backend yang mendukung penentuan DualStack sebagai protokol alamat IP. Jika layanan titik akhir mendukung dual-stack, resource backend-nya juga harus mendukung dual-stack. Valid values:
|
IPv4 |
| SupportedRegionList |
array |
No |
||
|
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ServiceBusinessStatus |
string |
Status bisnis layanan titik akhir. Nilai yang valid:
|
Normal |
| RequestId |
string |
ID permintaan. |
8D8992C1-6712-423C-BAC5-E5E817484C6B |
| ServiceName |
string |
Nama layanan titik akhir. |
com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3vpx8yqxblby3i**** |
| ServiceStatus |
string |
Status layanan titik akhir. Nilai yang valid:
|
Active |
| ServiceDescription |
string |
Deskripsi layanan titik akhir. |
This is my EndpointService. |
| CreateTime |
string |
Waktu pembuatan layanan titik akhir. |
2022-01-02T19:11:12Z |
| ServiceDomain |
string |
Nama domain layanan dari layanan titik akhir. |
epsrv-hp3vpx8yqxblby3i****.cn-huhehaote.privatelink.aliyuncs.com |
| ZoneAffinityEnabled |
boolean |
Menentukan apakah afinitas zona diaktifkan untuk resolusi nama domain titik akhir. Nilai yang valid:
|
false |
| AutoAcceptEnabled |
boolean |
Menentukan apakah koneksi titik akhir diterima secara otomatis. Nilai yang valid:
|
false |
| ServiceId |
string |
ID layanan titik akhir. |
epsrv-hp3vpx8yqxblby3i**** |
ServiceSupportIPv6
deprecated
|
boolean |
Menentukan apakah layanan titik akhir mendukung IPv6. Nilai yang valid:
|
false |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-acfmy***** |
| AddressIpVersion |
string |
Versi IP. Nilai yang valid:
|
IPv4 |
| SupportedRegionSet |
array<object> |
||
|
object |
|||
ServiceRegionId
deprecated
|
string |
||
| RegionServiceStatus |
string |
||
| RegionBusinessStatus |
string |
||
| SupportedRegionId |
string |
Contoh
Respons sukses
JSONformat
{
"ServiceBusinessStatus": "Normal",
"RequestId": "8D8992C1-6712-423C-BAC5-E5E817484C6B",
"ServiceName": "com.aliyuncs.privatelink.cn-huhehaote.epsrv-hp3vpx8yqxblby3i****",
"ServiceStatus": "Active",
"ServiceDescription": "This is my EndpointService.",
"CreateTime": "2022-01-02T19:11:12Z",
"ServiceDomain": "epsrv-hp3vpx8yqxblby3i****.cn-huhehaote.privatelink.aliyuncs.com",
"ZoneAffinityEnabled": false,
"AutoAcceptEnabled": false,
"ServiceId": "epsrv-hp3vpx8yqxblby3i****",
"ServiceSupportIPv6": false,
"ResourceGroupId": "rg-acfmy*****",
"AddressIpVersion": "IPv4",
"SupportedRegionSet": [
{
"ServiceRegionId": "",
"RegionServiceStatus": "",
"RegionBusinessStatus": "",
"SupportedRegionId": ""
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointServiceExist | The specified Endpoint Service already exists. | |
| 400 | AlbNotFound | The specified Alb does not exist. | |
| 400 | LoadBalancerNotFound | The specified load balancer does not exist. | |
| 400 | LoadBalancerNotSupportPrivateLink | The specified SLB does not support PrivateLink. | |
| 400 | GenerateResourceIdFailed | Failed to generate ResourceId. | |
| 400 | QuotaMisMatched | The resource you applied for has exceeded the quota. | |
| 400 | VSwitchNotFound | The specified VSwitch does not exist. | |
| 400 | EndpointServicePayerForbidden | The parameter EndpointServicePayer is forbidden. The user is not in the whitelist. | |
| 400 | NeedOpenProduct | The product is not activated. | |
| 400 | EndpointServiceNotSupportedZone | The specified endpoint service does not support the zone. | |
| 400 | IllegalParamFormat.%s | The param format of %s is illegal. | |
| 400 | MissingParam.%s | The param of %s is missing. | |
| 400 | ResourceNotFound.NatGateway | The specified resource %s is not found. | |
| 400 | Mismatch.ResourceType | The %s is mismatched for %s and %s. | |
| 400 | EndpointServiceNotSupportIpv6 | The param supportIpv6 of EndpointService is forbidden , resource is not support ipv6. | |
| 400 | OperationDenied.PrivateDomainNotSupport | The operation is not allowed because of PrivateDomainNotSupport. | |
| 400 | Conflict.ServiceName | The ServiceName %s is conflict. | |
| 400 | InvalidParam.PrivateDnsName | The parameter of PrivateDnsName is illegal, which needs to end with aliyun.com, aliyun-inc.com, or aliyuncs.com. | |
| 400 | OperationDenied.ZoneAffinityNotSupport | The operation is not allowed because of zone affinity not support. | |
| 400 | OperationDenied.RamPolicyNotSupport | The operation is not allowed because of RamPolicyNotSupport. | |
| 400 | OperationDenied.ResourceTypeNotSupportDualStack | The specified resource type does not support dualstack. | |
| 400 | OperationDenied.ServiceResourceIpVersionMismatch | The endpoint service and service resource AddressIpVersion do not match. | |
| 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.