Cria regras de roteamento de domínio de armazenamento para uma instância do Container Registry (ACR).
Sintaxe
{
"Type": "ALIYUN::CR::StorageDomainRoutingRule",
"Properties": {
"InstanceId": String,
"Routes": List
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
InstanceId |
String |
Sim |
Não |
ID da instância ACR. |
Nenhuma |
|
Routes |
List |
Sim |
Sim |
Entradas de roteamento de nome de domínio. |
Consulte Propriedades de Routes. |
Sintaxe de Routes
"Routes": [
{
"StorageDomain": String,
"EndpointType": String,
"InstanceDomain": String
}
]
Propriedades de Routes
|
Parâmetro |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
EndpointType |
String |
Sim |
Sim |
Tipo de endpoint. |
Nenhuma |
|
InstanceDomain |
String |
Sim |
Sim |
Nome de domínio da instância. |
Nenhuma |
|
StorageDomain |
String |
Sim |
Sim |
Nome de domínio de armazenamento. |
Nenhuma |
Valores de retorno
Fn::GetAtt
ModifyTime: Última hora de modificação da regra.
RuleId: ID da regra.
CreateTime: Hora de criação da regra.
Routes: Lista de entradas de roteamento de nome de domínio.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: ACR instance ID.
zh: ACR instance ID.
Required: true
Routes:
AssociationPropertyMetadata:
Parameters:
StorageDomain:
Type: String
Description:
en: The storage domain name.
zh: The storage domain name.
Required: true
EndpointType:
Type: String
Description:
en: The endpoint type.
zh: The endpoint type.
Required: true
InstanceDomain:
Type: String
Description:
en: The instance domain name.
zh: The instance domain name.
Required: true
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The domain name routing entries.
zh: The domain name routing entries.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::CR::StorageDomainRoutingRule
Properties:
InstanceId:
Ref: InstanceId
Routes:
Ref: Routes
Outputs:
ModifyTime:
Description:
en: The modification time of the rule.
zh: The modification time of the rule.
Value:
Fn::GetAtt:
- ExtensionResource
- ModifyTime
RuleId:
Description:
en: The rule ID.
zh: The rule ID.
Value:
Fn::GetAtt:
- ExtensionResource
- RuleId
CreateTime:
Description:
en: The creation time of the rule.
zh: The creation time of the rule.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Routes:
Description:
en: The domain name routing entries.
zh: The domain name routing entries.
Value:
Fn::GetAtt:
- ExtensionResource
- Routes
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "ACR instance ID.",
"zh": "ACR instance ID."
},
"Required": true
},
"Routes": {
"AssociationPropertyMetadata": {
"Parameters": {
"StorageDomain": {
"Type": "String",
"Description": {
"en": "The storage domain name.",
"zh": "The storage domain name."
},
"Required": true
},
"EndpointType": {
"Type": "String",
"Description": {
"en": "The endpoint type.",
"zh": "The endpoint type."
},
"Required": true
},
"InstanceDomain": {
"Type": "String",
"Description": {
"en": "The instance domain name.",
"zh": "The instance domain name."
},
"Required": true
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The domain name routing entries.",
"zh": "The domain name routing entries."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CR::StorageDomainRoutingRule",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"Routes": {
"Ref": "Routes"
}
}
}
},
"Outputs": {
"ModifyTime": {
"Description": {
"en": "The modification time of the rule.",
"zh": "The modification time of the rule."
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ModifyTime"
]
}
},
"RuleId": {
"Description": {
"en": "The rule ID.",
"zh": "The rule ID."
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"RuleId"
]
}
},
"CreateTime": {
"Description": {
"en": "The creation time of the rule.",
"zh": "The creation time of the rule."
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"Routes": {
"Description": {
"en": "The domain name routing entries.",
"zh": "The domain name routing entries."
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Routes"
]
}
}
}
}