Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::ENS::Instance

Última atualização: Jun 27, 2026

Consulta informações detalhadas de uma instância específica do Edge Node Service (ENS).

Sintaxe

{
  "Type": "DATASOURCE::ENS::Instance",
  "Properties": {
    "InstanceId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

InstanceId

String

Sim

Sim

ID da instância.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos de source ao atualizar a pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos de source durante a atualização da pilha.

  • Always: atualiza os recursos de source durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • PrivateIpAddress: endereço IP privado da instância.

  • InstanceId: ID da instância.

  • VSwitchId: ID do vSwitch.

  • NetworkId: ID da rede.

  • SystemDisk: especificações do disco do sistema.

  • InstanceName: nome da instância.

  • DataDisk: especificações do disco de dados.

  • InternetMaxBandwidthOut: largura de banda de saída máxima. Unidade: Mbit/s.

  • ImageId: ID da imagem.

  • SecurityId: ID do grupo de segurança.

  • PaymentType: método de faturamento da instância.

  • EnsRegionId: ID da região da instância.

  • InstanceType: tipo da instância.

  • HostName: nome do host da instância.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: The ID of the instance.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::ENS::Instance
    Properties:
      InstanceId:
        Ref: InstanceId
Outputs:
  PrivateIpAddress:
    Description: The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PrivateIpAddress
  InstanceId:
    Description: The ID of the instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InstanceId
  VSwitchId:
    Description: The ID of the vSwitch to which the instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VSwitchId
  NetworkId:
    Description: The ID of the network.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NetworkId
  SystemDisk:
    Description: System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SystemDisk
  InstanceName:
    Description: 'The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InstanceName
  DataDisk:
    Description: Data disk specifications.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DataDisk
  InternetMaxBandwidthOut:
    Description: Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InternetMaxBandwidthOut
  ImageId:
    Description: The ID of the image.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ImageId
  SecurityId:
    Description: ID of the security group to which the instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SecurityId
  PaymentType:
    Description: Instance payment method.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PaymentType
  EnsRegionId:
    Description: The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EnsRegionId
  InstanceType:
    Description: 'The specification of the instance. Example value: ens.sn1.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InstanceType
  HostName:
    Description: The hostname of the instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - HostName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the instance."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ENS::Instance",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        }
      }
    }
  },
  "Outputs": {
    "PrivateIpAddress": {
      "Description": "The private IP address. Can only be used for node-level scheduling. If a private IP address is specified, the number of instances can only be one, and both the private IP address and the vSwitch ID are not empty, the private IP address takes effect.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PrivateIpAddress"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of the instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceId"
        ]
      }
    },
    "VSwitchId": {
      "Description": "The ID of the vSwitch to which the instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchId"
        ]
      }
    },
    "NetworkId": {
      "Description": "The ID of the network.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NetworkId"
        ]
      }
    },
    "SystemDisk": {
      "Description": "System Disk Specification. SystemDisk is a non-required parameter when InstanceType is x86_pm,x86_bmi,x86_bm,pc_bmi, or arm_bmi. SystemDisk is a required parameter when instanceType is other specification families.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SystemDisk"
        ]
      }
    },
    "InstanceName": {
      "Description": "The instance name. Example value: test-InstanceName. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), periods (.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceName"
        ]
      }
    },
    "DataDisk": {
      "Description": "Data disk specifications.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DataDisk"
        ]
      }
    },
    "InternetMaxBandwidthOut": {
      "Description": "Maximum public network bandwidth. The field type is Long, and the precision may be lost during serialization/deserialization.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InternetMaxBandwidthOut"
        ]
      }
    },
    "ImageId": {
      "Description": "The ID of the image.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ImageId"
        ]
      }
    },
    "SecurityId": {
      "Description": "ID of the security group to which the instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SecurityId"
        ]
      }
    },
    "PaymentType": {
      "Description": "Instance payment method.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "EnsRegionId": {
      "Description": "The node ID. When ScheduleAreaLevel is Region, EnsRegionId is required. When ScheduleAreaLevel is Big,Middle,Small, EnsRegionId is invalid.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EnsRegionId"
        ]
      }
    },
    "InstanceType": {
      "Description": "The specification of the instance. Example value: ens.sn1.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceType"
        ]
      }
    },
    "HostName": {
      "Description": "The hostname of the instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "HostName"
        ]
      }
    }
  }
}