The ALIYUN::CR::StorageDomainRoutingRule resource creates storage domain name routing rules for an instance.
Syntax
{
"Type": "ALIYUN::CR::StorageDomainRoutingRule",
"Properties": {
"InstanceId": String,
"Routes": List
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
InstanceId |
String |
Yes |
No |
The ACR instance ID. |
None |
|
Routes |
List |
Yes |
Yes |
A list of domain name routing entries. |
See Routes properties. |
Routes syntax
"Routes": [
{
"StorageDomain": String,
"EndpointType": String,
"InstanceDomain": String
}
]
Routes properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
EndpointType |
String |
Yes |
Yes |
The endpoint type. |
None |
|
InstanceDomain |
String |
Yes |
Yes |
The instance domain name. |
None |
|
StorageDomain |
String |
Yes |
Yes |
The storage domain name. |
None |
Return values
Fn::GetAtt
-
ModifyTime: The last modification time of the rule.
-
RuleId: The rule ID.
-
CreateTime: The creation time of the rule.
-
Routes: The list of domain name routing entries.
Examples
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"
]
}
}
}
}