DATASOURCE::SAE::Namespaces

更新时间:2024-11-27 07:14:49

DATASOURCE::SAE::Namespaces类型用于查询命名空间列表。

语法

{
  "Type": "DATASOURCE::SAE::Namespaces",
  "Properties": {
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

RefreshOptions

String

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

有效值:

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

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

返回数据(Fn::GetAtt)

  • Namespaces:命名空间详情列表。

  • NamespaceIds:命名空间ID列表。

属性名称

类型

描述

约束

属性名称

类型

描述

约束

NamespaceIds

List

命名空间ID列表。

Namespaces

List

命名空间详情列表。

NamespaceId

String

命名空间ID。

NamespaceName

String

命名空间名称。

NamespaceDescription

String

命名空间描述。

TenantId

String

租户ID。

AddressServerHost

String

主机服务地址。

RegionId

String

地域ID。

示例

JSON
YAML
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Namespaces": {
      "Type": "DATASOURCE::SAE::Namespaces",
      "Properties": {}
    }
  },
  "Outputs": {
    "Namespaces": {
      "Description": "The list of namespaces.",
      "Value": {
        "Fn::GetAtt": [
          "Namespaces",
          "Namespaces"
        ]
      }
    },
    "NamespaceIds": {
      "Description": "The list of namespace names.",
      "Value": {
        "Fn::GetAtt": [
          "Namespaces",
          "NamespaceIds"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Resources:
  Namespaces:
    Type: DATASOURCE::SAE::Namespaces
    Properties: {}
Outputs:
  Namespaces:
    Description: The list of namespaces.
    Value:
      Fn::GetAtt:
        - Namespaces
        - Namespaces
  NamespaceIds:
    Description: The list of namespace names.
    Value:
      Fn::GetAtt:
        - Namespaces
        - NamespaceIds
                    
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回数据(Fn::GetAtt)
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等