Obtient les détails d'une instance spécifiée.
Description de l'opération
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
rocketmq:GetInstance |
get |
*Instance
|
Aucune | Aucune |
Syntaxe de la requête
GET /instances/{instanceId} HTTP/1.1
Paramètres de chemin
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| instanceId |
string |
Oui |
L'identifiant de l'instance à interroger. |
rmq-cn-7e22ody**** |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les données de réponse. |
||
| requestId |
string |
L'identifiant de la requête. Chaque requête possède un identifiant unique, qui peut être utilisé pour résoudre les problèmes. |
05AB7FBD-F1D3-5D87-BF78-BD782249**** |
| success |
boolean |
Indique si l'opération a réussi. |
true |
| data |
object |
Les données de réponse. |
|
| regionId |
string |
L'identifiant de la région de l'instance. |
cn-hangzhou |
| instanceId |
string |
L'identifiant de l'instance. |
rmq-cn-7e22ody**** |
| instanceName |
string |
Le nom de l'instance. |
instance de test |
| status |
string |
L'état de l'instance. Valeurs valides :
|
RUNNING |
| startTime |
string |
L'heure de démarrage de l'instance. |
2022-08-01 00:00:00 |
| expireTime |
string |
L'heure d'expiration de l'instance. |
2022-09-01 00:00:00 |
| releaseTime |
string |
L'heure de libération de l'instance. |
2022-09-07 00:00:00 |
| userId |
string |
L'identifiant de l'utilisateur auquel l'instance appartient. |
111111111111111 |
| bid |
string |
Le BID du canal de vente du produit. |
26842 |
| commodityCode |
string |
Le code du produit de l'instance de file d'attente MSMQ pour RocketMQ 5.x, tel que ons_rmqsub_public_cn. |
ons_rmqsub_public_cn |
| serviceCode |
string |
Le code de service de l'instance. Le code de service pour la file d'attente MSMQ pour RocketMQ est rmq. |
rmq |
| seriesCode |
string |
Le code de la série principale de l'instance. Pour connaître les différences entre les séries principales, consultez Sélection du produit. Valeurs valides :
|
standard |
| subSeriesCode |
string |
Le code de la sous-série de l'instance. Pour connaître les différences entre les sous-séries, consultez Sélection du produit. Valeurs valides :
|
cluster_ha |
| paymentType |
string |
La méthode de facturation de l'instance. Valeurs valides :
|
Subscription |
| remark |
string |
Les remarques de l'instance. |
Ceci est une remarque pour l'instance |
| networkInfo |
object |
Les informations réseau. |
|
| vpcInfo |
object |
The VPC information. |
|
| vpcId |
string |
The ID of the VPC associated with the instance. |
vpc-uf6of9452b2pba82c**** |
vSwitchId
deprecated
|
string |
The ID of the vSwitch associated with the instance. |
vsw-uf6gwtbn6etadpvz7**** |
| vSwitches |
array<object> |
The vSwitch list. |
|
|
object |
|||
| vSwitchId |
string |
The vSwitch ID. |
vsw-uf6gwtbn6etadpvz7**** |
| zoneId |
string |
The zone ID. |
cn-hangzhou |
| securityGroupIds |
string |
The security group ID. |
sg-hp35r2hc3a3sv8q2sb16 |
| endpoints |
array<object> |
The endpoint information. |
|
|
object |
The endpoint information. |
||
| endpointType |
string |
The endpoint type of the instance. Valeurs valides :
|
TCP_INTERNET |
| endpointUrl |
string |
The endpoint of the instance. |
rmq-cn-c4d2tbk****-vpc.cn-hangzhou.rmq.aliyuncs.com:8080 |
| ipWhitelist |
array |
The public network access IP whitelist. Only public endpoints support IP whitelist configuration. VPC endpoints do not support this feature. |
192.168.x.x/24 |
|
string |
The public network access IP whitelist. |
192.168.x.x/24 |
|
| endpointId |
string |
The associated PrivateLink endpoint instance. |
ep-bpxxx |
| internetInfo |
object |
The public network information of the instance. |
|
| internetSpec |
string |
Indicates whether public network access is enabled. Valeurs valides :
|
enable |
| flowOutType |
string |
The billing type for public network usage. Valeurs valides :
|
payByBandwidth |
| flowOutBandwidth |
integer |
The Internet bandwidth specification. Unit: Mbit/s. |
1 |
| ipWhitelist |
array |
The IP whitelist for public network access. |
|
|
string |
The IP whitelist entry for public network access. |
192.168.x.x/24 |
|
| accountInfo |
object |
Les informations du compte. |
|
| username |
string |
The username of the instance. When you use public network access, you must configure the username and password of the instance in the SDK code for identity verification. |
6W0xz2uPfiwp**** |
| instanceQuotas |
array<object> |
Les informations sur la capacité. |
|
|
object |
Les informations sur la capacité. |
||
| quotaName |
string |
The quota name of the instance. Valeurs valides :
|
TOPIC_COUNT |
| usedCount |
number |
The used quota. Unit: count. |
10 |
| freeCount |
number |
The free quota. Unit: count. |
20 |
| totalCount |
number |
The total quota. Unit: count. |
100 |
| createTime |
string |
L'heure de création de l'instance. |
2022-08-01 00:00:00 |
| updateTime |
string |
L'heure de la dernière modification de l'instance. |
2022-08-02 00:00:00 |
extConfig
deprecated
|
object |
La configuration étendue. Ce champ est obsolète. Utilisez plutôt les champs productInfo, internetInfo et aclInfo. |
|
| aclType |
string |
The authentication type of the instance. Valeurs valides :
|
default |
| sendReceiveRatio |
number |
The ratio of message sending to message receiving. |
0.5 |
| autoScaling |
boolean |
Indicates whether out-of-specification burstable elastic capacity is enabled. Valeurs valides :
|
true |
| messageRetentionTime |
integer |
The message retention period. Unit: hours. |
72 |
| supportAutoScaling |
boolean |
Indicates whether the instance supports out-of-specification burstable elastic capacity. Valeurs valides :
|
true |
| internetSpec |
string |
Indicates whether public network access is enabled. Valeurs valides :
|
enable |
| flowOutType |
string |
The billing type for public network usage. Valeurs valides :
|
payByBandwidth |
| flowOutBandwidth |
integer |
The Internet bandwidth specification. Unit: Mbit/s. |
10 |
| msgProcessSpec |
string |
The message processing specification. For the TPS upper limit of message sending and receiving, see Instance specifications. |
rmq.s2.2xlarge |
| resourceGroupId |
string |
L'identifiant du groupe de ressources. |
rg-acfm3tmjruyribi |
| productInfo |
object |
La configuration étendue de l'instance. |
|
| msgProcessSpec |
string |
The message processing specification. For the TPS upper limit of message sending and receiving, see Instance specifications. |
rmq.s2.2xlarge |
| sendReceiveRatio |
number |
The ratio of message sending to message receiving. |
0.5 |
| autoScaling |
boolean |
Indicates whether out-of-specification burstable elastic capacity is enabled for lossless scaling. Valeurs valides :
|
true |
| messageRetentionTime |
integer |
The message retention period. Unit: hours. |
72 |
| supportAutoScaling |
boolean |
Indicates whether the burstable elasticity capability beyond the specification is supported. Valeurs valides :
|
true |
| traceOn |
boolean |
Indicates whether the message trace feature is enabled. |
true |
| storageEncryption |
boolean |
Indicates whether storage encryption is enabled. |
false |
| storageSecretKey |
string |
The storage encryption key. |
xxxxx |
| capacityType |
string |
The capacity mode. Valeurs valides :
|
provisioned |
| provisionedCapacity |
integer |
The reserved capacity. |
3000 |
| drReplicationMode |
string |
The cross-region replication mode. |
async_cross_az |
| maxDelayTime |
integer |
The maximum interval for scheduled messages. Unit: seconds. |
3456000 |
| adaptiveElasticity |
boolean |
The adaptive elasticity configuration. |
false |
| aclInfo |
object |
Les informations de contrôle d'accès. |
|
| aclTypes |
array |
The list of authentication types for the instance. |
|
|
string |
The authentication type of the instance. Valeurs valides :
|
default |
|
| defaultVpcAuthFree |
boolean |
Indicates whether authentication-free access over the internal network is enabled. Valeurs valides :
|
true |
aclType
deprecated
|
string |
The authentication type of the instance. This field is deprecated. Use the aclTypes field instead. Valeurs valides :
|
default |
| software |
object |
Les informations logicielles de l'instance. |
|
| softwareVersion |
string |
The software version. |
5.0-rmq-20230619-1 |
maintainTime
deprecated
|
string |
The upgrade time window. |
02:00-06:00 |
| upgradeMethod |
string |
The upgrade method. Valeurs valides :
|
auto |
| topicCount |
integer |
Le nombre de sujets. |
10 |
| groupCount |
integer |
Le nombre de groupes de consommateurs. |
10 |
| tags |
array<object> |
La liste des balises de ressource. |
|
|
object |
La balise de ressource. |
||
| key |
string |
The key of the resource tag. |
key |
| value |
string |
The value of the resource tag. |
value |
| autoRenew |
boolean |
Indique si le renouvellement automatique est activé. |
false |
| autoRenewPeriod |
integer |
Indique si le renouvellement automatique est activé. |
false |
| code |
string |
Le code d'erreur. |
MissingInstanceId |
| message |
string |
Le message d'erreur. |
Le paramètre instanceId est obligatoire pour cette action |
| httpStatusCode |
integer |
Le code d'état HTTP. |
400 |
| dynamicCode |
string |
Le code d'erreur dynamique. |
InstanceId |
| dynamicMessage |
string |
Le message d'erreur dynamique. |
instanceId |
Exemples
JSON format
{
"requestId": "05AB7FBD-F1D3-5D87-BF78-BD782249****",
"success": true,
"data": {
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"instanceName": "test instance",
"status": "RUNNING",
"startTime": "2022-08-01 00:00:00",
"expireTime": "2022-09-01 00:00:00",
"releaseTime": "2022-09-07 00:00:00",
"userId": "111111111111111",
"bid": "26842",
"commodityCode": "ons_rmqsub_public_cn",
"serviceCode": "rmq",
"seriesCode": "standard",
"subSeriesCode": "cluster_ha",
"paymentType": "Subscription",
"remark": "This is remark for instance.",
"networkInfo": {
"vpcInfo": {
"vpcId": "vpc-uf6of9452b2pba82c****",
"vSwitchId": "vsw-uf6gwtbn6etadpvz7****",
"vSwitches": [
{
"vSwitchId": "vsw-uf6gwtbn6etadpvz7****",
"zoneId": "cn-hangzhou"
}
],
"securityGroupIds": "sg-hp35r2hc3a3sv8q2sb16"
},
"endpoints": [
{
"endpointType": "TCP_INTERNET",
"endpointUrl": "rmq-cn-c4d2tbk****-vpc.cn-hangzhou.rmq.aliyuncs.com:8080",
"ipWhitelist": [
"192.168.x.x/24"
],
"endpointId": "ep-bpxxx"
}
],
"internetInfo": {
"internetSpec": "enable",
"flowOutType": "payByBandwidth",
"flowOutBandwidth": 1,
"ipWhitelist": [
"192.168.x.x/24"
]
}
},
"accountInfo": {
"username": "6W0xz2uPfiwp****"
},
"instanceQuotas": [
{
"quotaName": "TOPIC_COUNT",
"usedCount": 10,
"freeCount": 20,
"totalCount": 100
}
],
"createTime": "2022-08-01 00:00:00 ",
"updateTime": "2022-08-02 00:00:00 ",
"extConfig": {
"aclType": "default",
"sendReceiveRatio": 0.5,
"autoScaling": true,
"messageRetentionTime": 72,
"supportAutoScaling": true,
"internetSpec": "enable",
"flowOutType": "payByBandwidth",
"flowOutBandwidth": 10,
"msgProcessSpec": "rmq.s2.2xlarge"
},
"resourceGroupId": "rg-acfm3tmjruyribi",
"productInfo": {
"msgProcessSpec": "rmq.s2.2xlarge",
"sendReceiveRatio": 0.5,
"autoScaling": true,
"messageRetentionTime": 72,
"supportAutoScaling": true,
"traceOn": true,
"storageEncryption": false,
"storageSecretKey": "xxxxx",
"capacityType": "provisioned",
"provisionedCapacity": 3000,
"drReplicationMode": "async_cross_az",
"maxDelayTime": 3456000,
"adaptiveElasticity": false
},
"aclInfo": {
"aclTypes": [
"default"
],
"defaultVpcAuthFree": true,
"aclType": "default"
},
"software": {
"softwareVersion": "5.0-rmq-20230619-1",
"maintainTime": "02:00-06:00",
"upgradeMethod": "auto"
},
"topicCount": 10,
"groupCount": 10,
"tags": [
{
"key": "key",
"value": "value"
}
],
"autoRenew": false,
"autoRenewPeriod": 0
},
"code": "MissingInstanceId",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 400,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.