DATASOURCE::SAE::Namespaces类型用于查询命名空间列表。
语法
{
  "Type": "DATASOURCE::SAE::Namespaces",
  "Properties": {
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回数据(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。 | 无 | 
示例
{
  "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
                    该文章对您有帮助吗?