DATASOURCE::ARMS::GrafanaWorkspace

DATASOURCE::ARMS::GrafanaWorkspace类型用于查询单个Grafana工作区信息。

语法

{
  "Type": "DATASOURCE::ARMS::GrafanaWorkspace",
  "Properties": {
    "GrafanaWorkspaceId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

GrafanaWorkspaceId

String

工作区 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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"
        ]
      }
    }
  }
}