DATASOURCE::SAE::Namespace

DATASOURCE::SAE::Namespace类型用于获取单个命名空间详情。

语法

{
  "Type": "DATASOURCE::SAE::Namespace",
  "Properties": {
    "NameSpaceShortId": String,
    "NamespaceId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

NameSpaceShortId

String

短版命名空间 ID。

不需要带上 region,推荐;不超过 20 个字符,仅允许小写英文字母和数字。

NamespaceId

String

命名空间ID。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • Description:命名空间描述。

  • SecurityGroupId:安全组 ID。

  • VSwitchId:交换机ID

  • AppCount:应用个数。

  • NotificationExpired:发布单通知是否过期。

  • BelongRegion:命名空间所属地域。

  • NameSpaceShortId:短版命名空间 ID

  • NamespaceName:命名空间名称

  • TenantId:SAE 命名空间租户 ID。

  • VpcId:专有网络ID。

  • LastChangeOrderRunning:命名空间是否有发布单运行。

  • UserId:用户 ID。

  • LastChangeOrderId发布单 ID。

  • VSwitchName:交换机名称。

  • VpcName:专有网络名称。

  • JumpServerIp:跳板机 IP 地址。

  • NamespaceId:命名空间 ID。

  • JumpServerAppId:跳板机应用 ID。

  • LastChangeOrderStatus:最近一次发布单状态。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  NamespaceId:
    Type: String
    Description:
      en: The ID of the namespace.
    Required: false
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::SAE::Namespace
    Properties:
      NamespaceId:
        Ref: NamespaceId
Outputs:
  Description:
    Description: The description of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  SecurityGroupId:
    Description: The ID of the security group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SecurityGroupId
  VSwitchId:
    Description: The ID of the vSwitch.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VSwitchId
  AppCount:
    Description: The number of applications.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AppCount
  NotificationExpired:
    Description: 'Indicates whether the notification of a change order is expired. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NotificationExpired
  BelongRegion:
    Description: The region to which the namespace belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - BelongRegion
  NameSpaceShortId:
    Description: The ID of the short namespace.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NameSpaceShortId
  NamespaceName:
    Description: The name of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NamespaceName
  TenantId:
    Description: The ID of the tenant in the SAE namespace.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TenantId
  VpcId:
    Description: The ID of the virtual private cloud (VPC).
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VpcId
  LastChangeOrderRunning:
    Description: 'Indicates whether a change order is being executed in the namespace. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LastChangeOrderRunning
  UserId:
    Description: The ID of the user.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - UserId
  LastChangeOrderId:
    Description: The ID of the change order.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LastChangeOrderId
  VSwitchName:
    Description: The name of the vSwitch.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VSwitchName
  VpcName:
    Description: The name of the VPC.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VpcName
  JumpServerIp:
    Description: The IP address of the jump server.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - JumpServerIp
  NamespaceId:
    Description: The ID of the namespace.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NamespaceId
  JumpServerAppId:
    Description: The ID of the jump server application.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - JumpServerAppId
  LastChangeOrderStatus:
    Description: 'The status of the latest change order. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LastChangeOrderStatus
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NamespaceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the namespace."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::SAE::Namespace",
      "Properties": {
        "NamespaceId": {
          "Ref": "NamespaceId"
        }
      }
    }
  },
  "Outputs": {
    "Description": {
      "Description": "The description of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "SecurityGroupId": {
      "Description": "The ID of the security group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecurityGroupId"
        ]
      }
    },
    "VSwitchId": {
      "Description": "The ID of the vSwitch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchId"
        ]
      }
    },
    "AppCount": {
      "Description": "The number of applications.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AppCount"
        ]
      }
    },
    "NotificationExpired": {
      "Description": "Indicates whether the notification of a change order is expired. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NotificationExpired"
        ]
      }
    },
    "BelongRegion": {
      "Description": "The region to which the namespace belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BelongRegion"
        ]
      }
    },
    "NameSpaceShortId": {
      "Description": "The ID of the short namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NameSpaceShortId"
        ]
      }
    },
    "NamespaceName": {
      "Description": "The name of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NamespaceName"
        ]
      }
    },
    "TenantId": {
      "Description": "The ID of the tenant in the SAE namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TenantId"
        ]
      }
    },
    "VpcId": {
      "Description": "The ID of the virtual private cloud (VPC).",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "LastChangeOrderRunning": {
      "Description": "Indicates whether a change order is being executed in the namespace. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LastChangeOrderRunning"
        ]
      }
    },
    "UserId": {
      "Description": "The ID of the user.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "UserId"
        ]
      }
    },
    "LastChangeOrderId": {
      "Description": "The ID of the change order.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LastChangeOrderId"
        ]
      }
    },
    "VSwitchName": {
      "Description": "The name of the vSwitch.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchName"
        ]
      }
    },
    "VpcName": {
      "Description": "The name of the VPC.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcName"
        ]
      }
    },
    "JumpServerIp": {
      "Description": "The IP address of the jump server.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "JumpServerIp"
        ]
      }
    },
    "NamespaceId": {
      "Description": "The ID of the namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NamespaceId"
        ]
      }
    },
    "JumpServerAppId": {
      "Description": "The ID of the jump server application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "JumpServerAppId"
        ]
      }
    },
    "LastChangeOrderStatus": {
      "Description": "The status of the latest change order. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LastChangeOrderStatus"
        ]
      }
    }
  }
}