All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::CMS::SlsGroups

Last Updated:Jun 01, 2023

DATASOURCE::CMS::SlsGroups is used to query the basic information about Logstore groups.

Syntax

{
  "Type": "DATASOURCE::CMS::SlsGroups",
  "Properties": {
    "SlsGroupName": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

SlsGroupName

String

No

Yes

The name of the Logstore group.

None.

Return values

Fn::GetAtt

  • SlsGroups: details of the Logstore groups.

  • SlsGroupNames: the names of the Logstore groups.

Property

Type

Description

Constraint

SlsGroupNames

List

The names of the Logstore groups.

None.

SlsGroups

List

Details of the Logstore groups.

None.

SlsGroupName

String

The name of the Logstore group.

None.

SlsGroupConfig

List

The configurations of the Logstore group.

None.

SlsGroupDescription

String

The description of the Logstore group.

None.

CreateTime

String

The timestamp when the Logstore group was created.

Unit: milliseconds.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SlsGroupName:
    Description: The name of the Logstore group.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      SlsGroupName:
        Ref: SlsGroupName
    Type: DATASOURCE::CMS::SlsGroups
Outputs:
  SlsGroupNames:
    Description: The list of sls group names.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SlsGroupNames
  SlsGroups:
    Description: The list of sls groups.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - SlsGroups

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SlsGroupName": {
      "Type": "String",
      "Description": "The name of the Logstore group."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CMS::SlsGroups",
      "Properties": {
        "SlsGroupName": {
          "Ref": "SlsGroupName"
        }
      }
    }
  },
  "Outputs": {
    "SlsGroups": {
      "Description": "The list of sls groups.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SlsGroups"
        ]
      }
    },
    "SlsGroupNames": {
      "Description": "The list of sls group names.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SlsGroupNames"
        ]
      }
    }
  }
}