Tüm Ürünler
Search
Belge Merkezi

:GetVpcPeerConnectionAttribute

Son Güncelleme:Oct 10, 2026

Belirtilen bir VPC eşleme bağlantısının özniteliklerini sorgular.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:GetVpcPeerConnectionAttribute

get

*PeerConnection

acs:vpc:*:{#accountId}:vpcpeer/{#InstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

VPC eşleme bağlantısının kimliği.

pcc-lnk0m24khwvtkm****

Response elements

Element

Type

Description

Example

object

İstek kimliği.

RequestId

string

İstek kimliği.

473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E

InstanceId

string

VPC eşleme bağlantısının kimliği.

pcc-lnk0m24khwvtkm****

GmtCreate

string

VPC eşleme bağlantısının oluşturulduğu zaman. Zaman, UTC saat diliminde YYYY-MM-DDThh:mm:ssZ biçiminde görüntülenir.

2022-04-24T09:02:36Z

GmtModified

string

VPC eşleme bağlantısının en son değiştirildiği zaman. Zaman, UTC saat diliminde YYYY-MM-DDThh:mm:ssZ biçiminde görüntülenir.

2022-04-24T19:20:45Z

Name

string

VPC eşleme bağlantısının adı.

vpcpeer

Description

string

VPC eşleme bağlantısının açıklaması.

test

OwnerId

integer

Talep eden VPC'nin ait olduğu Alibaba Cloud hesabının kimliği.

25346073170691****

AcceptingOwnerUid

integer

Kabul eden VPC'nin ait olduğu Alibaba Cloud hesabının kimliği.

28311773240248****

RegionId

string

Talep eden VPC'nin bölge kimliği.

cn-hangzhou

AcceptingRegionId

string

Kabul eden VPC'nin bölge kimliği.

cn-hangzhou

Bandwidth

integer

VPC eşleme bağlantısının bant genişliği. Birim: Mbps. Değer, 0'dan büyük bir tam sayı olmalıdır.

Not

-1 değeri, bant genişliğine herhangi bir sınır uygulanmadığını gösterir.

Varsayılan değerler:

  • Bölgeler arası VPC eşleme bağlantısı için varsayılan bant genişliği 1.024 Mbps'dir.

  • Bölge içi VPC eşleme bağlantısı için varsayılan bant genişliği -1 Mbps'dir. Bu, bant genişliğine herhangi bir sınır uygulanmadığını gösterir.

1024

Status

string

VPC eşleme bağlantısının durumu. Geçerli değerler:

  • Creating

  • Accepting

  • Updating

  • Rejected

  • Expired

  • Activated

  • Deleting

  • Deleted

Daha fazla bilgi için bkz. VPC eşleme bağlantısına genel bakış.

Activated

BizStatus

string

VPC eşleme bağlantısının iş durumu. Geçerli değerler:

  • Normal

  • FinancialLocked: VPC eşleme bağlantısı, vadesi geçmiş bir ödeme nedeniyle kilitlenmiştir.

Normal

GmtExpired

string

VPC eşleme bağlantısının sona erdiği zaman.

Bu parametre yalnızca VPC eşleme bağlantısının durumu Accepting veya Expired olduğunda döndürülür. Diğer durumlar için dönüş değeri null olur.

2022-05-01T09:02:36Z

ResourceGroupId

string

Kaynak grubunun kimliği.

rg-acfmxazb4ph6aiy****

Vpc

object

Talep eden VPC'nin ayrıntıları.

VpcId

string

Talep eden VPC'nin kimliği.

vpc-bp1gsk7h12ew7oegk****

Ipv4Cidrs

array

Talep eden VPC'nin IPv4 CIDR blokları.

string

Talep eden VPC'nin IPv4 CIDR bloğu.

192.168.0.0/16

Ipv6Cidrs

array

Talep eden VPC'nin IPv6 CIDR blokları.

string

Talep eden VPC'nin IPv6 CIDR bloğu.

2408:XXXX:3c5:6e00::/56

AcceptingVpc

object

Kabul eden VPC'nin ayrıntıları.

VpcId

string

Kabul eden VPC'nin kimliği.

vpc-bp1vzjkp2q1xgnind****

Ipv4Cidrs

array

Kabul eden VPC'nin IPv4 CIDR blokları.

string

Kabul eden VPC'nin IPv4 CIDR bloğu.

10.0.0.0/16

Ipv6Cidrs

array

Kabul eden VPC'nin IPv6 CIDR blokları.

string

Kabul eden VPC'nin IPv6 CIDR bloğu.

2408:XXXX:3b8:3a00::/56

Tags

array<object>

Etiket listesi.

object

Etiket listesi.

Key

string

Etiket anahtarı.

FinanceDept

Value

string

Etiket değeri.

FinanceJoshua

LinkType

string

VPC eşleme bağlantısının bağlantı türü.

Varsayılan değerler:

  • Bölgeler arası VPC eşleme bağlantısı için varsayılan bağlantı türü Gold'dur.

  • Bölge içi VPC eşleme bağlantısı için varsayılan bağlantı türü boştur.

Gold

ManagedService

string

Kaynağın ait olduğu Alibaba Cloud hizmeti.

SWAS

Examples

Success response

JSON format

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3AC0DE3C83E",
  "InstanceId": "pcc-lnk0m24khwvtkm****",
  "GmtCreate": "2022-04-24T09:02:36Z",
  "GmtModified": "2022-04-24T19:20:45Z",
  "Name": "vpcpeer",
  "Description": "test",
  "OwnerId": 0,
  "AcceptingOwnerUid": 0,
  "RegionId": "cn-hangzhou",
  "AcceptingRegionId": "cn-hangzhou",
  "Bandwidth": 1024,
  "Status": "Activated",
  "BizStatus": "Normal",
  "GmtExpired": "2022-05-01T09:02:36Z",
  "ResourceGroupId": "rg-acfmxazb4ph6aiy****",
  "Vpc": {
    "VpcId": "vpc-bp1gsk7h12ew7oegk****",
    "Ipv4Cidrs": [
      "192.168.0.0/16"
    ],
    "Ipv6Cidrs": [
      "2408:XXXX:3c5:6e00::/56"
    ]
  },
  "AcceptingVpc": {
    "VpcId": "vpc-bp1vzjkp2q1xgnind****",
    "Ipv4Cidrs": [
      "10.0.0.0/16"
    ],
    "Ipv6Cidrs": [
      "2408:XXXX:3b8:3a00::/56"
    ]
  },
  "Tags": [
    {
      "Key": "FinanceDept",
      "Value": "FinanceJoshua"
    }
  ],
  "LinkType": "Gold",
  "ManagedService": "SWAS"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ResourceNotFound.InstanceId The specified resource of %s is not found. The specified instance is not found

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.