Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::SLB::LoadBalancer

Última atualização: Jun 27, 2026

Consulta informações sobre uma instância do Classic Load Balancer (CLB).

Sintaxe

{
  "Type": "DATASOURCE::SLB::LoadBalancer",
  "Properties": {
    "LoadBalancerId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

LoadBalancerId

String

Sim

Sim

ID da instância CLB.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos da fonte de dados durante atualizações da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos da fonte de dados durante as atualizações da pilha.

  • Always: atualiza os recursos da fonte de dados durante as atualizações da pilha.

Valores de retorno

Fn::GetAtt

  • RenewalDuration: duração da renovação automática.

  • AddressIpVersion: versão do IP.

  • ListenerPortsAndProtocal: portas e protocolos dos listeners.

  • EndTime: horário de expiração da instância CLB.

  • ResourceGroupId: ID do grupo de recursos.

  • Address: endereço de serviço da instância CLB.

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

  • ListenerPortsAndProtocol: portas e protocolos de frontend usados pela instância CLB.

  • LoadBalancerId: ID da instância CLB.

  • BackendServers: servidores de backend da instância CLB.

  • ModificationProtectionStatus: status do modo somente leitura de configuração da instância CLB.

  • LoadBalancerSpec: especificação da instância CLB.

  • NetworkType: tipo de rede da instância CLB.

  • Bandwidth: largura de banda máxima da instância CLB voltada para a Internet com faturamento por largura de banda.

  • ModificationProtectionReason: motivo da ativação do modo somente leitura de configuração.

  • PaymentType: método de faturamento.

  • Tags: tags.

  • MasterZoneId: ID da zona primária da instância CLB.

  • VSwitchId: ID do vSwitch da instância CLB voltada para a rede interna.

  • CreateTime: horário de criação da instância CLB.

  • RenewalStatus: status da renovação automática.

  • RenewalCycUnit: ciclo de renovação automática.

  • SlaveZoneId: ID da zona secundária da instância CLB.

  • InternetChargeType: método de faturamento da instância CLB voltada para a Internet.

  • RegionIdAlias: alias da região onde a instância CLB reside.

  • LoadBalancerName: nome da instância CLB.

  • VpcId: ID da Virtual Private Cloud (VPC) da instância CLB voltada para a rede interna.

  • DeleteProtection: indica se a proteção contra exclusão está ativada.

  • EndTimeStamp: timestamp que indica o horário de expiração da instância CLB.

  • AddressType: tipo de endereço da instância CLB.

  • CreateTimeStamp: timestamp que indica o horário de criação da instância CLB.

  • AutoReleaseTime: timestamp que indica o horário de liberação automática.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  LoadBalancerId:
    Type: String
    Description:
      en: The CLB instance ID.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::SLB::LoadBalancer
    Properties:
      LoadBalancerId:
        Ref: LoadBalancerId
Outputs:
  RenewalDuration:
    Description: The auto-renewal duration. This parameter is valid only if RenewalStatus is set to AutoRenewal.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RenewalDuration
  AddressIpVersion:
    Description: 'The version of the IP address. Valid values: ipv4 and ipv6.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AddressIpVersion
  ListenerPortsAndProtocal:
    Description: The ports or protocols of the listeners.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ListenerPortsAndProtocal
  EndTime:
    Description: The time when the CLB instance expires.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EndTime
  ResourceGroupId:
    Description: The resource group ID.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  Address:
    Description: The service IP address of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Address
  InstanceChargeType:
    Description: Instance billing method.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InstanceChargeType
  ListenerPortsAndProtocol:
    Description: The ports or protocols of the listeners.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ListenerPortsAndProtocol
  LoadBalancerId:
    Description: The CLB instance ID.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LoadBalancerId
  BackendServers:
    Description: The backend servers of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - BackendServers
  ModificationProtectionStatus:
    Description: Load balancing modifies the protection state.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ModificationProtectionStatus
  LoadBalancerSpec:
    Description: The specification of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LoadBalancerSpec
  NetworkType:
    Description: The network type of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - NetworkType
  Bandwidth:
    Description: The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Bandwidth
  ModificationProtectionReason:
    Description: 'The reason why the configuration read-only mode is enabled. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ModificationProtectionReason
  PaymentType:
    Description: Load balancing instance payment type.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - PaymentType
  Tags:
    Description: The tags of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
  MasterZoneId:
    Description: The ID of the primary zone to which the CLB instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - MasterZoneId
  VSwitchId:
    Description: The ID of the vSwitch to which the internal-facing CLB instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VSwitchId
  CreateTime:
    Description: The time when the CLB instance was created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  RenewalStatus:
    Description: Indicates whether auto-renewal is enabled.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RenewalStatus
  RenewalCycUnit:
    Description: 'The auto-renewal cycle. Valid values: Year and Month. Default value: Month.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RenewalCycUnit
  SlaveZoneId:
    Description: The ID of the secondary zone to which the CLB instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SlaveZoneId
  InternetChargeType:
    Description: The metering method of the Internet-facing CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - InternetChargeType
  RegionIdAlias:
    Description: The alias of the region to which the CLB instance belongs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RegionIdAlias
  LoadBalancerName:
    Description: The name of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LoadBalancerName
  VpcId:
    Description: The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - VpcId
  DeleteProtection:
    Description: Indicates whether deletion protection is enabled for the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DeleteProtection
  EndTimeStamp:
    Description: The timestamp that indicates the expiration time of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EndTimeStamp
  AddressType:
    Description: The address type of the CLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AddressType
  CreateTimeStamp:
    Description: The timestamp generated when the CA certificate is uploaded.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTimeStamp
  AutoReleaseTime:
    Description: The timestamp generated when the CLB instance is released.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AutoReleaseTime
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "LoadBalancerId": {
      "Type": "String",
      "Description": {
        "en": "The CLB instance ID."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::SLB::LoadBalancer",
      "Properties": {
        "LoadBalancerId": {
          "Ref": "LoadBalancerId"
        }
      }
    }
  },
  "Outputs": {
    "RenewalDuration": {
      "Description": "The auto-renewal duration. This parameter is valid only if RenewalStatus is set to AutoRenewal.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RenewalDuration"
        ]
      }
    },
    "AddressIpVersion": {
      "Description": "The version of the IP address. Valid values: ipv4 and ipv6.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AddressIpVersion"
        ]
      }
    },
    "ListenerPortsAndProtocal": {
      "Description": "The ports or protocols of the listeners.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ListenerPortsAndProtocal"
        ]
      }
    },
    "EndTime": {
      "Description": "The time when the CLB instance expires.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EndTime"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The resource group ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "Address": {
      "Description": "The service IP address of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Address"
        ]
      }
    },
    "InstanceChargeType": {
      "Description": "Instance billing method.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceChargeType"
        ]
      }
    },
    "ListenerPortsAndProtocol": {
      "Description": "The ports or protocols of the listeners.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ListenerPortsAndProtocol"
        ]
      }
    },
    "LoadBalancerId": {
      "Description": "The CLB instance ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LoadBalancerId"
        ]
      }
    },
    "BackendServers": {
      "Description": "The backend servers of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "BackendServers"
        ]
      }
    },
    "ModificationProtectionStatus": {
      "Description": "Load balancing modifies the protection state.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ModificationProtectionStatus"
        ]
      }
    },
    "LoadBalancerSpec": {
      "Description": "The specification of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LoadBalancerSpec"
        ]
      }
    },
    "NetworkType": {
      "Description": "The network type of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "NetworkType"
        ]
      }
    },
    "Bandwidth": {
      "Description": "The maximum bandwidth of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Bandwidth"
        ]
      }
    },
    "ModificationProtectionReason": {
      "Description": "The reason why the configuration read-only mode is enabled. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ModificationProtectionReason"
        ]
      }
    },
    "PaymentType": {
      "Description": "Load balancing instance payment type.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PaymentType"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    },
    "MasterZoneId": {
      "Description": "The ID of the primary zone to which the CLB instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MasterZoneId"
        ]
      }
    },
    "VSwitchId": {
      "Description": "The ID of the vSwitch to which the internal-facing CLB instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VSwitchId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the CLB instance was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "RenewalStatus": {
      "Description": "Indicates whether auto-renewal is enabled.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RenewalStatus"
        ]
      }
    },
    "RenewalCycUnit": {
      "Description": "The auto-renewal cycle. Valid values: Year and Month. Default value: Month.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RenewalCycUnit"
        ]
      }
    },
    "SlaveZoneId": {
      "Description": "The ID of the secondary zone to which the CLB instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SlaveZoneId"
        ]
      }
    },
    "InternetChargeType": {
      "Description": "The metering method of the Internet-facing CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InternetChargeType"
        ]
      }
    },
    "RegionIdAlias": {
      "Description": "The alias of the region to which the CLB instance belongs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RegionIdAlias"
        ]
      }
    },
    "LoadBalancerName": {
      "Description": "The name of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LoadBalancerName"
        ]
      }
    },
    "VpcId": {
      "Description": "The ID of the virtual private cloud (VPC) where the internal-facing CLB instance is deployed.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "DeleteProtection": {
      "Description": "Indicates whether deletion protection is enabled for the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DeleteProtection"
        ]
      }
    },
    "EndTimeStamp": {
      "Description": "The timestamp that indicates the expiration time of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EndTimeStamp"
        ]
      }
    },
    "AddressType": {
      "Description": "The address type of the CLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AddressType"
        ]
      }
    },
    "CreateTimeStamp": {
      "Description": "The timestamp generated when the CA certificate is uploaded.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTimeStamp"
        ]
      }
    },
    "AutoReleaseTime": {
      "Description": "The timestamp generated when the CLB instance is released.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AutoReleaseTime"
        ]
      }
    }
  }
}