Consulta os detalhes de uma instância do Simple Application Server em uma região específica.
Sintaxe
{
"Type": "DATASOURCE::SWAS::Instance",
"Properties": {
"InstanceId": String,
"RefreshOptions": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualizável |
Descrição |
Restrições |
|
InstanceId |
String |
Sim |
Sim |
ID da instância do Simple Application Server. |
Nenhuma |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados durante a atualização da pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
DisableReason: motivo da desabilitação da instância.
Status: status da instância.
ResourceGroupId: ID do grupo de recursos ao qual o Simple Application Server pertence.
InstanceId: ID da instância do Simple Application Server.
PlanId: ID do plano.
ResourceSpec: especificação do recurso.
DdosStatus: status de DDoS.
Image: informações da imagem da instância.
BusinessStatus: status do servidor.
PublicIpAddress: endereço IP público.
InstanceName: nome do servidor.
InnerIpAddress: endereço IP privado.
NetworkAttributes: atributos de rede da instância.
Uuid: UUID da instância.
Combination: indica se o plano é combinado.
ChargeType: método de faturamento da instância.
ExpiredTime: hora de expiração.
CreationTime: hora de criação.
ImageId: ID da imagem.
PlanType: tipo de plano.
Disks: array com informações sobre os discos do Simple Application Server.
RegionId: ID da região.
Tags: lista de tags associadas à instância.
Exemplo
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: The ID of the instance.
Required: true
Resources:
Instance:
Type: DATASOURCE::SWAS::Instance
Properties:
InstanceId:
Ref: InstanceId
Outputs:
DisableReason:
Description: The reason why the instance is disabled.
Value:
Fn::GetAtt:
- Instance
- DisableReason
Status:
Description: The status of the instance.
Value:
Fn::GetAtt:
- Instance
- Status
ResourceGroupId:
Description: The ID of the resource group to which the instance belongs.
Value:
Fn::GetAtt:
- Instance
- ResourceGroupId
InstanceId:
Description: The ID of the instance.
Value:
Fn::GetAtt:
- Instance
- InstanceId
PlanId:
Description: The plan ID of the instance.
Value:
Fn::GetAtt:
- Instance
- PlanId
ResourceSpec:
Description: The resource specification of the instance.
Value:
Fn::GetAtt:
- Instance
- ResourceSpec
DdosStatus:
Description: The anti-DDoS status of the instance.
Value:
Fn::GetAtt:
- Instance
- DdosStatus
Image:
Description: The image information of the instance.
Value:
Fn::GetAtt:
- Instance
- Image
BusinessStatus:
Description: The business status of the instance.
Value:
Fn::GetAtt:
- Instance
- BusinessStatus
PublicIpAddress:
Description: The public IP address of the instance.
Value:
Fn::GetAtt:
- Instance
- PublicIpAddress
InstanceName:
Description: The name of the instance.
Value:
Fn::GetAtt:
- Instance
- InstanceName
InnerIpAddress:
Description: The private IP address of the instance.
Value:
Fn::GetAtt:
- Instance
- InnerIpAddress
NetworkAttributes:
Description: The network attributes of the instance.
Value:
Fn::GetAtt:
- Instance
- NetworkAttributes
Uuid:
Description: The unique identifier of the instance.
Value:
Fn::GetAtt:
- Instance
- Uuid
Combination:
Description: Indicates whether the instance is a combination instance.
Value:
Fn::GetAtt:
- Instance
- Combination
ChargeType:
Description: The billing method of the instance.
Value:
Fn::GetAtt:
- Instance
- ChargeType
ExpiredTime:
Description: The expiration time of the instance.
Value:
Fn::GetAtt:
- Instance
- ExpiredTime
CreationTime:
Description: The creation time of the instance.
Value:
Fn::GetAtt:
- Instance
- CreationTime
ImageId:
Description: The ID of the image used by the instance.
Value:
Fn::GetAtt:
- Instance
- ImageId
PlanType:
Description: The plan type of the instance.
Value:
Fn::GetAtt:
- Instance
- PlanType
Disks:
Description: The disks of the instance.
Value:
Fn::GetAtt:
- Instance
- Disks
RegionId:
Description: The ID of the region where the instance is deployed.
Value:
Fn::GetAtt:
- Instance
- RegionId
Tags:
Description: The tags of the instance.
Value:
Fn::GetAtt:
- Instance
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the instance."
},
"Required": true
}
},
"Resources": {
"Instance": {
"Type": "DATASOURCE::SWAS::Instance",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
}
}
}
},
"Outputs": {
"DisableReason": {
"Description": "The reason why the instance is disabled.",
"Value": {
"Fn::GetAtt": [
"Instance",
"DisableReason"
]
}
},
"Status": {
"Description": "The status of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"Status"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group to which the instance belongs.",
"Value": {
"Fn::GetAtt": [
"Instance",
"ResourceGroupId"
]
}
},
"InstanceId": {
"Description": "The ID of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"PlanId": {
"Description": "The plan ID of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"PlanId"
]
}
},
"ResourceSpec": {
"Description": "The resource specification of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"ResourceSpec"
]
}
},
"DdosStatus": {
"Description": "The anti-DDoS status of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"DdosStatus"
]
}
},
"Image": {
"Description": "The image information of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"Image"
]
}
},
"BusinessStatus": {
"Description": "The business status of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"BusinessStatus"
]
}
},
"PublicIpAddress": {
"Description": "The public IP address of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"PublicIpAddress"
]
}
},
"InstanceName": {
"Description": "The name of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceName"
]
}
},
"InnerIpAddress": {
"Description": "The private IP address of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InnerIpAddress"
]
}
},
"NetworkAttributes": {
"Description": "The network attributes of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"NetworkAttributes"
]
}
},
"Uuid": {
"Description": "The unique identifier of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"Uuid"
]
}
},
"Combination": {
"Description": "Indicates whether the instance is a combination instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"Combination"
]
}
},
"ChargeType": {
"Description": "The billing method of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"ChargeType"
]
}
},
"ExpiredTime": {
"Description": "The expiration time of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"ExpiredTime"
]
}
},
"CreationTime": {
"Description": "The creation time of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"CreationTime"
]
}
},
"ImageId": {
"Description": "The ID of the image used by the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"ImageId"
]
}
},
"PlanType": {
"Description": "The plan type of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"PlanType"
]
}
},
"Disks": {
"Description": "The disks of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"Disks"
]
}
},
"RegionId": {
"Description": "The ID of the region where the instance is deployed.",
"Value": {
"Fn::GetAtt": [
"Instance",
"RegionId"
]
}
},
"Tags": {
"Description": "The tags of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"Tags"
]
}
}
}
}