DATASOURCE::ARMS::GrafanaWorkspaces類型用于查詢Grafana工作區信息。
語法
{
"Type": "DATASOURCE::ARMS::GrafanaWorkspaces",
"Properties": {
"ResourceGroupId": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
ResourceGroupId | String | 否 | 是 | 資源組ID。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,數據源資源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
GrafanaWorkspaceIds:工作區ID列表。
GrafanaWorkspaces:工作區詳情列表。
屬性名稱 | 類型 | 描述 | 約束 |
GrafanaWorkspaceIds | List | 工作區ID列表。 | 無 |
GrafanaWorkspaces | List | 工作區詳情列表。 | 無 |
ResourceGroupId | String | 資源組ID。 | 無 |
GrafanaWorkspaceId | String | 工作區ID | 無 |
Tags | Map | 工作區綁定的標簽 | 無 |
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceGroupId:
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Type: String
Description:
en: The ID of the resource group to which the Prometheus instance belongs.
Required: false
Resources:
ExtensionDataSource:
Type: DATASOURCE::ARMS::GrafanaWorkspaces
Properties:
ResourceGroupId:
Ref: ResourceGroupId
Outputs:
GrafanaWorkspaceIds:
Description: The list of grafana workspace IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaWorkspaceIds
GrafanaWorkspaces:
Description: The list of grafana workspaces.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaWorkspaces
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceGroupId": {
"AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
"Type": "String",
"Description": {
"en": "The ID of the resource group to which the Prometheus instance belongs."
},
"Required": false
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ARMS::GrafanaWorkspaces",
"Properties": {
"ResourceGroupId": {
"Ref": "ResourceGroupId"
}
}
}
},
"Outputs": {
"GrafanaWorkspaceIds": {
"Description": "The list of grafana workspace IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaWorkspaceIds"
]
}
},
"GrafanaWorkspaces": {
"Description": "The list of grafana workspaces.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaWorkspaces"
]
}
}
}
}
文檔內容是否對您有幫助?