DATASOURCE::CR::Namespaces is used to query namespaces.

Syntax

{
  "Type": "DATASOURCE::CR::Namespaces",
  "Properties": {
    "Status": String
  }
}

Properties

Property Type Required Editable Description Constraint
Status String No Yes The status of the namespace. Valid values:
  • NORMAL: The namespace is normal.
  • DELETING: The namespace is being deleted.

Return values (Fn::GetAtt)

  • Namespaces: details of the namespaces.
  • NamespaceNames: the namespace names.
Property Type Description Constraint
Namespaces List Details of the namespaces. None.
NamespaceNames List The namespace names. None.
Namespace String The display name of the namespace. None.
NamespaceStatus String The status of the namespace. Valid values:
  • NORMAL: The namespace is normal.
  • DELETING: The namespace is being deleted.
AuthorizeType String The operation permissions that you have on the namespace. None.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Status": {
          "Type": "String",
          "Description": "The status of namespace."
        }
      },
      "Resources": {
        "Namespaces": {
          "Type": "DATASOURCE::CR::Namespaces",
          "Properties": {
            "Status": {
              "Ref": "Status"
            }
          }
        }
      },
      "Outputs": {
        "Namespaces": {
          "Description": "The list of namespaces.",
          "Value": {
            "Fn::GetAtt": [
              "Namespaces",
              "Namespaces"
            ]
          }
        },
        "NamespaceNames": {
          "Description": "The list of namespace names.",
          "Value": {
            "Fn::GetAtt": [
              "Namespaces",
              "NamespaceNames"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Status:
        Type: String
        Description: The status of namespace.
    Resources:
      Namespaces:
        Type: DATASOURCE::CR::Namespaces
        Properties:
          Status:
            Ref: Status
    Outputs:
      Namespaces:
        Description: The list of namespaces.
        Value:
          Fn::GetAtt:
            - Namespaces
            - Namespaces
      NamespaceNames:
        Description: The list of namespace names.
        Value:
          Fn::GetAtt:
            - Namespaces
            - NamespaceNames