DATASOURCE::ARMS::GrafanaWorkspace類型用于查詢單個Grafana工作區信息。
語法
{
"Type": "DATASOURCE::ARMS::GrafanaWorkspace",
"Properties": {
"GrafanaWorkspaceId": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
GrafanaWorkspaceId | String | 是 | 是 | 工作區 ID。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,數據源資源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
GrafanaVersion:Grafana 版本號。
Description:工作區描述信息。
ResourceGroupId:資源組ID。
GrafanaWorkspaceId:工作區 ID。
CreateTime:創建時間。
GrafanaWorkspaceEdition:工作區版本。
GrafanaWorkspaceName:工作區名稱。
Tags:工作區綁定的標簽。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GrafanaWorkspaceId:
Type: String
Description:
en: The first ID of the resource.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ARMS::GrafanaWorkspace
Properties:
GrafanaWorkspaceId:
Ref: GrafanaWorkspaceId
Outputs:
GrafanaVersion:
Description: The version number of Grafana.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaVersion
Description:
Description: The description of the workspace.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
ResourceGroupId:
Description: The resource group ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
GrafanaWorkspaceId:
Description: The ID of the workspace.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaWorkspaceId
CreateTime:
Description: The time when the workspace was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
GrafanaWorkspaceEdition:
Description: The version of the workspace.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaWorkspaceEdition
GrafanaWorkspaceName:
Description: The workspace name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaWorkspaceName
Tags:
Description: The tags of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GrafanaWorkspaceId": {
"Type": "String",
"Description": {
"en": "The first ID of the resource."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ARMS::GrafanaWorkspace",
"Properties": {
"GrafanaWorkspaceId": {
"Ref": "GrafanaWorkspaceId"
}
}
}
},
"Outputs": {
"GrafanaVersion": {
"Description": "The version number of Grafana.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaVersion"
]
}
},
"Description": {
"Description": "The description of the workspace.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"ResourceGroupId": {
"Description": "The resource group ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"GrafanaWorkspaceId": {
"Description": "The ID of the workspace.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaWorkspaceId"
]
}
},
"CreateTime": {
"Description": "The time when the workspace was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"GrafanaWorkspaceEdition": {
"Description": "The version of the workspace.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaWorkspaceEdition"
]
}
},
"GrafanaWorkspaceName": {
"Description": "The workspace name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaWorkspaceName"
]
}
},
"Tags": {
"Description": "The tags of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
}
}
}
文檔內容是否對您有幫助?