All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::CMS::Namespaces

Last Updated:Jul 03, 2023

DATASOURCE::CMS::Namespaces is used to query the basic information about namespaces.

Syntax

{
  "Type": "DATASOURCE::CMS::Namespaces",
  "Properties": {
    "Namespace": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Namespace

String

No

Yes

The name of the namespace.

None.

Return values

Fn::GetAtt

Namespaces: details of the namespaces.

Property

Type

Description

Constraint

Namespaces

List

Details of the namespaces.

None.

CreateTime

String

The time when the namespace was created.

Unit: milliseconds.  

Namespace

String

The name of the namespace.

None.

Specification

String

The storage specification, which determines the data retention period of the namespace.

None.

Description

String

The description of the namespace.

None.

ModifyTime

String

The time when the namespace was last modified.

Unit: milliseconds.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Namespace:
    Description: Indicator warehouse name.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      Namespace:
        Ref: Namespace
    Type: DATASOURCE::CMS::Namespaces
Outputs:
  Namespaces:
    Description: The list of namespaces.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Namespaces

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Namespace": {
      "Type": "String",
      "Description": "Indicator warehouse name."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CMS::Namespaces",
      "Properties": {
        "Namespace": {
          "Ref": "Namespace"
        }
      }
    }
  },
  "Outputs": {
    "Namespaces": {
      "Description": "The list of namespaces.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Namespaces"
        ]
      }
    }
  }
}