Consulta os detalhes de um grupo de consumidores no ApsaraMQ for RocketMQ 5.0.
Sintaxe
{
"Type": "DATASOURCE::ROCKETMQ5::ConsumerGroup",
"Properties": {
"ConsumerGroupId": String,
"InstanceId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ConsumerGroupId |
String |
Sim |
Sim |
ID do grupo de consumidores. |
Nenhuma. |
|
InstanceId |
String |
Sim |
Sim |
ID da instância à qual o grupo de consumidores pertence. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados durante a atualização da pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
Status: status do grupo de consumidores.
ConsumerGroupId: ID do grupo de consumidores.
InstanceId: ID da instância.
ConsumeRetryPolicy: política de nova tentativa de consumo do grupo de consumidores.
CreateTime: hora de criação do grupo de consumidores.
UpdateTime: hora da última atualização do grupo de consumidores.
DeliveryOrderType: ordem de entrega de mensagens do grupo de consumidores.
Remark: observações sobre o grupo de consumidores.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ConsumerGroupId:
Type: String
Description:
en: The ID of the consumer group.
Required: true
InstanceId:
Type: String
Description:
en: The ID of the instance to which the consumer group belongs.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ROCKETMQ5::ConsumerGroup
Properties:
ConsumerGroupId:
Ref: ConsumerGroupId
InstanceId:
Ref: InstanceId
Outputs:
Status:
Description: The state of the consumer group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Status
ConsumerGroupId:
Description: The ID of the consumer group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ConsumerGroupId
InstanceId:
Description: The ID of the RocketMQ instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceId
ConsumeRetryPolicy:
Description: 'The consumption retry policy that you want to configure for the consumer group. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- ConsumeRetryPolicy
CreateTime:
Description: The time when the consumer group was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
UpdateTime:
Description: The time when the consumer group was last updated.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UpdateTime
DeliveryOrderType:
Description: The message delivery order of the consumer group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DeliveryOrderType
Remark:
Description: The remarks on the consumer group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Remark
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ConsumerGroupId": {
"Type": "String",
"Description": {
"en": "The ID of the consumer group."
},
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the instance to which the consumer group belongs."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ROCKETMQ5::ConsumerGroup",
"Properties": {
"ConsumerGroupId": {
"Ref": "ConsumerGroupId"
},
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"Status": {
"Description": "The state of the consumer group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Status"
]
}
},
"ConsumerGroupId": {
"Description": "The ID of the consumer group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ConsumerGroupId"
]
}
},
"InstanceId": {
"Description": "The ID of the RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceId"
]
}
},
"ConsumeRetryPolicy": {
"Description": "The consumption retry policy that you want to configure for the consumer group. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ConsumeRetryPolicy"
]
}
},
"CreateTime": {
"Description": "The time when the consumer group was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"UpdateTime": {
"Description": "The time when the consumer group was last updated.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UpdateTime"
]
}
},
"DeliveryOrderType": {
"Description": "The message delivery order of the consumer group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DeliveryOrderType"
]
}
},
"Remark": {
"Description": "The remarks on the consumer group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Remark"
]
}
}
}
}