Consulta as informações de rede de uma instância do ApsaraDB for Tair.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
kvstore:DescribeDBInstanceNetInfo |
get |
*DBInstance
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| InstanceId |
string |
Sim |
O ID da instância. |
r-bp1zxszhcgatnx**** |
| NetType |
string |
Não |
O tipo de rede. |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| InstanceNetworkType |
string |
O tipo de rede. Valores válidos:
|
CLASSIC |
| RequestId |
string |
O ID da solicitação. |
FC77D4E1-2A7C-4F0B-A4CC-CE0B9C314B9B |
| NetInfoItems |
object |
Detalhes sobre as conexões de rede da instância. |
|
| InstanceNetInfo |
array<object> |
Uma matriz de detalhes de conexão de rede da instância. |
|
|
object |
Os detalhes de uma conexão de rede. |
||
| DirectConnection |
integer |
Indicates whether the address is for a direct connection. Valid values:
|
0 |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-bp1e7clcw529l773d**** |
| DBInstanceNetType |
string |
The network type. Valid values:
|
1 |
| Upgradeable |
string |
The remaining validity period of the Classic Network connection string, in seconds. Nota
A value of 0 indicates that the connection string does not expire. |
0 |
| ExpiredTime |
string |
The validity period of the Classic Network connection string, in seconds. |
5183778 |
| ConnectionString |
string |
The connection string of the instance. |
r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com |
| IPType |
string |
The network type of the IP address. Valid values:
|
Inner |
| VPCInstanceId |
string |
The ID of the instance associated with the VPC. |
r-bp1ky7j6qc7umk**** |
| Port |
string |
The service port of the instance. |
6379 |
| VPCId |
string |
The ID of the VPC to which the instance belongs. |
vpc-bp1nme44gek34slfc**** |
| IPAddress |
string |
The IP address. |
172.16.49.*** |
| IsSlaveProxy |
integer |
A value of 1 indicates that this network address is for a replica node in the standby zone. Nota
This address is returned only when multi-zone read/write splitting is enabled for the instance. |
1 |
Exemplos
Resposta de sucesso
JSON formato
{
"InstanceNetworkType": "CLASSIC",
"RequestId": "FC77D4E1-2A7C-4F0B-A4CC-CE0B9C314B9B",
"NetInfoItems": {
"InstanceNetInfo": [
{
"DirectConnection": 0,
"VSwitchId": "vsw-bp1e7clcw529l773d****",
"DBInstanceNetType": "1",
"Upgradeable": "0",
"ExpiredTime": "5183778",
"ConnectionString": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
"IPType": "Inner",
"VPCInstanceId": "r-bp1ky7j6qc7umk****",
"Port": "6379",
"VPCId": "vpc-bp1nme44gek34slfc****",
"IPAddress": "172.16.49.***",
"IsSlaveProxy": 1
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.