Cria uma página de resposta personalizada para o Edge Security Acceleration (ESA).
Sintaxe
{
"Type": "ALIYUN::ESA::Page",
"Properties": {
"ContentType": String,
"PageName": String,
"Content": String,
"Description": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
ContentType |
String |
Sim |
Sim |
Campo Content-Type do cabeçalho HTTP. |
Valores válidos:
|
|
PageName |
String |
Sim |
Sim |
Nome da página de resposta personalizada. |
Nenhuma |
|
Content |
String |
Não |
Sim |
Conteúdo da página codificado em Base64. |
Exemplo: "PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=", que representa "hello page". |
|
Description |
String |
Não |
Sim |
Descrição da página. |
Nenhuma |
Valores de retorno
Fn::GetAtt
PageId: ID da página de resposta personalizada.
Description: descrição da página.
ContentType: campo Content-Type do cabeçalho HTTP.
Content: conteúdo da página codificado em Base64.
Kind: tipo da página de resposta personalizada.
UpdateTime: hora da última modificação da página de resposta personalizada.
PageName: nome da página de resposta personalizada.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ContentType:
Type: String
Description:
en: |-
The Content-Type field in the HTTP header. Valid values:
text/html
application/json
AllowedValues:
- text/html
- application/json
Required: true
Content:
Type: String
Description:
en: 'The Base64-encoded page content. Example: "PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=", which indicates "hello page".'
Required: false
PageName:
Type: String
Description:
en: The name of the custom response page.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ESA::Page
Properties:
ContentType:
Ref: ContentType
Content:
Ref: Content
PageName:
Ref: PageName
Outputs:
PageId:
Description: The ID of the custom response page.
Value:
Fn::GetAtt:
- ExtensionResource
- PageId
Description:
Description: The description of the custom response page.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
ContentType:
Description: The Content-Type field in the HTTP header.
Value:
Fn::GetAtt:
- ExtensionResource
- ContentType
Content:
Description: The Base64-encoded content of the response page. The content type is specified by the Content-Type field.
Value:
Fn::GetAtt:
- ExtensionResource
- Content
Kind:
Description: The type of the custom response page.
Value:
Fn::GetAtt:
- ExtensionResource
- Kind
UpdateTime:
Description: The time when the custom response page was last modified.
Value:
Fn::GetAtt:
- ExtensionResource
- UpdateTime
PageName:
Description: The name of the custom response page.
Value:
Fn::GetAtt:
- ExtensionResource
- PageName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ContentType": {
"Type": "String",
"Description": {
"en": "The Content-Type field in the HTTP header. Valid values:\ntext/html\napplication/json"
},
"AllowedValues": [
"text/html",
"application/json"
],
"Required": true
},
"Content": {
"Type": "String",
"Description": {
"en": "The Base64-encoded page content. Example: \"PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=\", which indicates \"hello page\"."
},
"Required": false
},
"PageName": {
"Type": "String",
"Description": {
"en": "The name of the custom response page."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ESA::Page",
"Properties": {
"ContentType": {
"Ref": "ContentType"
},
"Content": {
"Ref": "Content"
},
"PageName": {
"Ref": "PageName"
}
}
}
},
"Outputs": {
"PageId": {
"Description": "The ID of the custom response page.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PageId"
]
}
},
"Description": {
"Description": "The description of the custom response page.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"ContentType": {
"Description": "The Content-Type field in the HTTP header.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ContentType"
]
}
},
"Content": {
"Description": "The Base64-encoded content of the response page. The content type is specified by the Content-Type field.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Content"
]
}
},
"Kind": {
"Description": "The type of the custom response page.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Kind"
]
}
},
"UpdateTime": {
"Description": "The time when the custom response page was last modified.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"UpdateTime"
]
}
},
"PageName": {
"Description": "The name of the custom response page.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PageName"
]
}
}
}
}