When you use OOS to create executions that require selecting multiple resources, you typically need to open multiple consoles to find resource parameter information. In the Parameters section of a template, you can specify AssociationProperty to obtain the resources in the specified region and specify AssociationPropertyMetadata to add filter conditions for the parameters. This simplifies operations that you perform to configure parameter settings in the console.
Parameter description
You can specify one of the following types of values for parameters in AssociationPropertyMetadata:
A literal value. For example:
"RegionId": "cn-hangzhou", OOS will fill in the specific region cn-hangzhou.A variable in the format
${ParameterKey}. For example:"VpcId": "${VpcId}", OOS will dynamically obtain the value corresponding to the VpcId parameter in the current template.NoteIf you want to set
${ParameterKey}as a fixed value, you can add an exclamation mark (!). For example:${!Literal}indicates the value is${Literal}.If you want to use parameter variables in a Terraform template, you need to add an additional
$before$. For example:"VpcId": "$${VpcId}", OOS will dynamically obtain the value corresponding to VpcId in the Terraform template.
The following table shows the corresponding AssociationPropertyMetadata when OOS supports different resources for AssociationProperty.
Custom resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Resource::Data::API | Used for querying data based on parameters through Alibaba Cloud product OpenAPI. |
Examples: |
Basic resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
Auto | OOS will automatically generate fields such as AssociationProperty and AssociationPropertyMetadata based on the Terraform original data structure. Note This value takes effect only for the JSON parameters in Terraform templates. | Overwrite: (Optional) appends values to or overwrites the declarations of nested parameters in the inner level. The value of Overwrite is of the dictionary data type and consists of key-value pairs. |
AutoCompleteInput | The random string that is automatically generated by the system. |
|
ChargeType | The billing method. Valid values:
| None |
Code | The code. | None |
CommaDelimitedList | The array in which elements are separated by commas (,). | None |
Cron | The CRON expression, which is a formatted string and specifies the execution time of a scheduled task. | None |
DateTime | The date. |
Examples: |
FileContent | The content that is read from a local file. | AcceptFileSuffixes: the formats of files that you can upload. Separate multiple file formats with commas (,). |
GMTZone | The GMT time zone. | Examples: |
Json | The JSON object. | None |
List[Parameter] | The parameters. The ROS console displays the values of a parameter only after you click the relevant button. This value takes effect only for JSON parameters. | Parameter: the declarations of parameters. For more information, see Overview. Examples: |
List[Parameters] | The parameter sets are displayed in a table in the ROS console. This value takes effect only for JSON parameters. |
|
OOSServiceRole | The Resource Access Management (RAM) role of Operation Orchestration Service (OOS). | RegionId: the region ID. By default, the region ID of the stack is used. Examples: |
Password | The password. | None |
RateControl | The rate control for the OOS execution. | Examples: |
Tags | The tags. |
Examples: |
Targets | The ECS instances that match a filter condition. You can select ECS instances based on a filter condition, such as an instance ID, a tag, or a resource group. | RegionId: the region ID. By default, the region ID of the stack is used. Examples: |
TextArea | The rich text. | None |
TimeTriggerWeekly | The time picker that allows you to specify the interval by the day of a week. | Examples: |
TimeZone | The time zone. | Examples: |
None | After you click Select Instances in the ROS console, a dialog box that prompts you to configure relevant parameters appears. This value takes effect only for JSON parameters. Note If you specify AssociationPropertyMetadata and do not specify AssociationProperty for a parameter, the ROS console displays the parameter settings only after you click the relevant button. |
Note You can use List[Parameter] to implement nested structures, and there is no limit on the nesting depth. |
ACR resources
AssociationProperty values | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ACR::Namespace::Name | The namespace of the container image. |
|
ALIYUN::ACR::Repo::RepoAttribute | The image repository of the Container Registry Personal Edition instance. |
|
ALIYUN::ACR::Repo::Tag | The information about the tag of the container image. |
|
Cloud-native Gateway resource
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::APIG::Gateway::GatewayId | The information about a cloud-native gateway. |
Example: |
ALB resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ALB::ACL::ACLId | The access control list (ACL) of Application Load Balancer (ALB). | RegionId: the region ID. By default, the region ID of the stack is used. The following sample code provides an example: |
ALIYUN::ALB::Instance::InstanceId | The ALB instance. |
The following sample code provides an example: |
ALIYUN::ALB::LoadBalancer::LoadBalancerId | The ID of the ALB instance. |
The following sample code provides an example: |
Bailian resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Bailian::ApiKey::ApiKeyInfo | Queries the Alibaba Cloud Model Studio API-KEY information. |
BSS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::BSS::PricingModule::ModuleCode | Queries the pricing information about an Alibaba Cloud service. |
|
CAS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::CAS::Certificate::CertificateId | The certificate of the SLB instance. | RegionId: The region ID. By default, the region ID of the stack is used. Example: |
CEN resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::CEN::Instance::CenId | Queries the information about your CEN instances. |
|
ALIYUN::CEN::TransitRouter::TransitRouterId | Queries the information about transit routers that are connected to a CEN instance. |
|
CMS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::CMS::Alarm::MetricSelector | The information about available metrics in CloudMonitor. | |
ALIYUN::CMS::Alarm::Rule | The threshold-triggered alert rule. | Example: |
ALIYUN::CMS::Alarm::SilenceTime | The mute period of the alert. | Example: |
ALIYUN::CMS::Alarm::TriggerResources | The resources that trigger alerts. | Example: |
ALIYUN::CMS::Event::EventFilterRule | The event-triggered alert rule. | Example: |
ALIYUN::CMS::Event::EventLevel | The level of the event that triggers alerts. | Example: |
ALIYUN::CMS::Event::EventName | The name of the event that triggers alerts. | Example: |
ALIYUN::CMS::Product::ProductType | The cloud service to which the event-triggered alert rule is applied. | Example: |
CR resources
AssociationProperty values | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::CR::Instance::InstanceId | The information about the Container Registry Enterprise Edition instance. |
|
ALIYUN::CR::NameSpace::Name | The information about the namespace of the Container Registry Enterprise Edition instance. |
|
ALIYUN::CR::Repository::RepoName | The information about the repository of the Container Registry Enterprise Edition instance. |
|
ALIYUN::CR::Repository::Tag | The information about the image tag of the Container Registry Enterprise Edition instance. |
|
CS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::CS::Cluster::ClusterId | The ID of the ACK cluster. |
Example: |
ALIYUN::CS::Cluster::ClusterNodePool | The node pool in the ACK cluster. |
Example: |
ALIYUN::CS::Cluster::KubernetesVersion | The information about the Kubernetes version. |
|
ALIYUN::CS::ManagedKubernetesCluster::ServiceCidr | The information about the Service CIDR block of the ACK managed cluster. |
|
ComputeNest resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ComputeNest::Artifact::ArtifactId | The information about the Compute Nest artifact. |
|
ALIYUN::ComputeNest::Artifact::ArtifactIdVersion | The information about the version of the Compute Nest artifact. |
|
ALIYUN::ComputeNest::Service::ServiceId | The ID of the Compute Nest service. |
Example: |
ALIYUN::ComputeNest::ServiceInstance::ServiceInstanceId | The ID of the Compute Nest service instance. |
Example: |
ALIYUN::ComputeNestSupplier::Service::ServiceVersion | The version of the Compute Nest service. |
Example: |
ComputeNestSupplier resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ComputeNestSupplier::Service::ServiceVersion | The version of the Compute Nest service. |
Example: |
DNS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::DNS::Domain::ValidateDomain | Checks the availability of the domain name of Alibaba Cloud DNS (DNS). |
|
DashVector resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::DashVector::ApiKey | The API key of AISearch |
Domain resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Domain::DomainName | Query the information about a domain name. |
|
EAS resources
AssociationProperty values | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::EAS::Instance::InstanceType | The specifications of the Elastic Algorithm Service (EAS) instance. |
|
ALIYUN::EAS::Resource::ResourceId | The information about the resource group of EAS. |
|
ECD resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ECD::Bundle::DesktopType | Queries the details of desktop types. |
|
ECI resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ECI::ContainerGroup::ContainerGroupId | The information about the container group of the elastic container instance. |
|
ECS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ECS::ZoneId | The zone ID of ECS. |
Example: |
ALIYUN::ECS::Command::CommandId | The ID of the Cloud Assistant command or Alibaba Cloud command. |
Example: |
ALIYUN::ECS::DeploymentSet::DeploymentSetId | The ID of the deployment set of ECS. |
|
ALIYUN::ECS::Disk::DataDiskCategory | The category of the data disk. |
Example: |
ALIYUN::ECS::Disk::DiskId | The ID of the disk. |
Example: |
ALIYUN::ECS::Disk::SystemDiskCategory | The system disk category. |
Example: |
ALIYUN::ECS::Image::ImageId | The image ID. |
Example: |
ALIYUN::ECS::Instance::AttributeSelector | The property selector of the ECS instance. | Example: |
ALIYUN::ECS::Instance::InstanceId | The ID of the ECS instance. |
Example: |
ALIYUN::ECS::Instance::InstancePropertyEditor | The property editor of the ECS instance. | Example: |
ALIYUN::ECS::Instance::InstanceType | The instance type of ECS. |
Example: |
ALIYUN::ECS::KeyPair::KeyPairName | The name of the key pair. | Example: |
ALIYUN::ECS::LaunchTemplate::LaunchTemplateId | The ID of the launch template. |
|
ALIYUN::ECS::Instance::Password | The password component of the ECS instance. Note The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. | Example: |
ALIYUN::ECS::Instance::RenewPeriod | The renewal period of the ECS instance. | Example: |
ALIYUN::ECS::Instance::StopMode | The mode in which the ECS instance is stopped. | Example: |
ALIYUN::ECS::InstanceType::AvailableInstanceType | The available ECS instance types. | Example: |
ALIYUN::ECS::KeyPair::KeyPairName | The key pair. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::ECS::LaunchTemplate::LaunchTemplateId | The ID of the launch template. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::ECS::LaunchTemplate::LaunchTemplateVersion | The version of the launch template. |
Example: |
ALIYUN::ECS::ManagedInstance::InstanceId | The ID of the managed ECS instance. |
Example: |
ALIYUN::ECS::RAM::Role | The RAM role that is assigned to the ECS instance. | Example: |
ALIYUN::ECS::RegionId | The region ID. By default, the value of RegionId is the ID of the region in which you deploy the stack. | Example: |
ALIYUN::ECS::RegionId::RegionDeploy | The ECS deployment region. | |
ALIYUN::ECS::RegionId::TargetRegionIds | The IDs of the destination regions of the ECS instance. | Example: |
ALIYUN::ECS::ResourceGroup::ResourceGroupId | The resource group. | Example: |
ALIYUN::ECS::SecurityGroup::PortRange | The port number range of the ECS security group based on the IP protocol |
|
ALIYUN::ECS::SecurityGroup::SecurityGroupId | The ID of the security group. |
Example: |
ALIYUN::ECS::Snapshot::AutoSnapshotPolicyId | The ID of the automatic snapshot policy. | RegionId: the region ID. By default, the region ID of the stack is used. Examples: |
ALIYUN::ECS::Snapshot::SnapshotId | The ID of the disk snapshot of the ECS instance. |
Example: |
ALIYUN::ECS::TAG | The tags of the ECS instance. |
Example: |
ALIYUN::ECS::VPC::VPCId | The virtual private cloud (VPC) ID. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::ECS::VSwitch | The vSwitch. |
The following sample code provides an example: |
EHPC resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::EHPC::Cluster::ClusterId | The cluster. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::EHPC::FileSystem::FileSystemId | The ID of the file system. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::EHPC::FileSystem::MountTargetDomain | The mount target. |
Example: |
ESS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ESS::AutoScalingGroup::AutoScalingGroupId | The ID of the Auto Scaling scaling group. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::ESS::ECIScalingConfiguration::ContainerName | The configurations of the elastic container instance type scaling group. |
|
ALIYUN::ESS::ECIScalingConfiguration::ScalingConfigurationId | The ID of the scaling configuration. |
|
ALIYUN::ESS::ScalingConfiguration::ScalingConfigurationId | The ID of the Auto Scaling scaling configuration. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
Elasticsearch resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Elasticsearch::Instance::InstanceType | The specifications of the Elasticsearch instance. | Example: |
Emr resources
AssociationProperty values | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Emr::ECSCluster::ClusterId | Queries E-MapReduce (EMR) clusters. |
|
FC3 resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::FC3::Function::FunctionName | The information about the function in Function Compute 3.0. |
|
FC resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::FC::Function::FunctionName | The information about the function in Function Compute 2.0. |
|
ALIYUN::FC::Service::ServiceName | The information about the service in Function Compute 2.0. |
|
Flow resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Flow::Connection::ConnectionId | The service connections in Apsara Devops. |
|
ALIYUN::Flow::Organization::OrganizationId | The organizations within the current account. |
|
Hologres resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Hologres::Instance::InstanceId | The ID of the Hologres instance. |
|
InfluxDB resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::InfluxDB::Instance::InstanceType | The specifications of the TSDB for InfluxDB® instance. |
Example: |
Kafka resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Kafka::Instance::InstanceId | The information about the ApsaraMQ for Kafka instance in the specified region. |
|
Lindorm resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Lindorm::Instance::InstanceId | The Lindorm instances. |
|
MongoDB resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::MongoDB::Instance::InstanceType | The specifications of the ApsaraDB for MongoDB instance. | Example: |
NAS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::NAS::FileSystem::FileSystemId | Queries the information about a file system. |
|
ALIYUN::NAS::FileSystem::MountTargetDomain | Queries the address of the mount target. |
|
NLB resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::NLB::LoadBalancer::LoadBalancerId | The ID of the Network Load Balancer (NLB) instance. |
Example: |
ALIYUN::NLB::Zone::ZoneId | The zone of the NLB instance. |
Example: |
OOS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::OOS::Command::CommandContent | The script of the OOS execution. | CommandType: the command type. Valid values:
Example: |
ALIYUN::OOS::Component::TimerTrigger | The component that you want to use for the OOS time trigger. | RegionId: the region ID. By default, the value of RegionId is the ID of the region in which you deploy the stack. Example: |
ALIYUN::OOS::File::FileUrl | The URL to which you want to upload the file. |
Example: |
ALIYUN::OOS::Package::PackageName | The name of the OOS software package. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::OOS::Package::PackageVersion | The version of the OOS software package. |
Example: |
ALIYUN::OOS::Parameter::Value | The common parameter of OOS. | RegionId: the region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::OOS::PatchBaseline::PatchBaselineName | The information about the patch baseline of OOS. |
|
ALIYUN::OOS::SecretParameter::Value | The encryption parameter of OOS. | RegionId: the region ID. By default, the value of RegionId is the ID of the region in which you deploy the stack. Example: |
ALIYUN::OOS::Template::TemplateName | The OOS template. | RegionId: the region ID. By default, the value of RegionId is the ID of the region in which you deploy the stack. Example: |
ALIYUN::OOS::Template::TemplateVersion | The version of the OOS template. |
Example: |
OSS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::OSS::Bucket::BucketName | The name of the OSS bucket. | RegionId: the region ID. By default, the region ID of the stack is used. Examples: |
ALIYUN::OSS::Bucket::Object | The OSS object. |
Examples: |
ALIYUN::OSS::Object::ObjectName | The name of the OSS object. |
Examples: |
UploadFilesToUserBucket | The component of uploading objects to OSS. |
Examples: |
PolarDB resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::POLARDB::DBCluster::DBClusterId | The ID of the PolarDB cluster. |
Example: |
ALIYUN::POLARDB::DBCluster::DBNodeClass | Queries available resources in a PolarDB cluster. |
Example: |
RAM resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::RAM::Role | RAM role. | RegionId: The region ID. By default, the region ID of the stack is used. Example: |
ALIYUN::RAM::User | RAM user. | RegionId: The region ID. By default, the region ID of the stack is used. Example: |
RDS resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::RDS::Engine::EngineId | The database engine type of ApsaraDB RDS. | Example: |
ALIYUN::RDS::Engine::EngineVersion | The database engine version of ApsaraDB RDS. | Engine: the database engine type. Example: |
ALIYUN::RDS::Instance::AccountPassword | The password of the ApsaraDB RDS database account. | Example: |
ALIYUN::RDS::Instance::InstanceId | The ID of the ApsaraDB RDS instance. |
Example: |
ALIYUN::RDS::Instance::InstanceType | The specifications of the ApsaraDB RDS instance. |
Example: |
Redis resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Redis::Instance::InstanceId | The ID of the Redis instance. |
Example: |
ALIYUN::Redis::Instance::InstanceType | The specifications of the Redis instance. |
Example: |
ResourceManager resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ResourceManager::Account | The resource account. | Example: |
ALIYUN::ResourceManager::Folder | The resource directory. | Example: |
SLB resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::SLB::ACL::ACLId | The access control list (ACL) ID of SLB. |
Example: |
ALIYUN::SLB::Instance::InstanceType | The specifications of the SLB instance. |
Example: |
ALIYUN::SLB::LoadBalancer::LoadBalancerId | The ID of the SLB instance. |
Example: |
ALIYUN::SLB::LoadBalancer::ZoneId | The information about the zone of the SLB instance. |
|
ServiceCatalog resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::ServiceCatalog::LaunchOption::PortfolioId | The ID of the product portfolio of Service Catalog. |
The following sample code provides an example: |
ALIYUN::ServiceCatalog::ProductVersion::ProductVersionId | The product version ID. |
The following sample code provides an example: |
Tag resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::Tag::TagKey | Queries the tag key information. |
|
ALIYUN::Tag::TagValue | Queries the tag values of a specified tag key. |
|
User resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::User::Account::AccountIds | The account IDs. | See the following example. |
ALIYUN::User::AccountId | The ID of the Alibaba Cloud account. | |
ALIYUN::User::UserId | The ID of the current Alibaba Cloud user. |
VPC resources
AssociationProperty value | Description | Corresponding AssociationPropertyMetadata |
ALIYUN::VPC::EIP::AllocationId | The information about the elastic IP address (EIP). |
|
ALIYUN::VPC::NatGateway::NatGatewayId | The ID of the NAT gateway. |
The following sample code provides an example: |
ALIYUN::VPC::VPC::CidrBlock | The CIDR block of the new VPC. | The following sample code provides an example: |
ALIYUN::VPC::VSwitch::CidrBlock | The CIDR block that you want to use to create a vSwitch. |
The following sample code provides an example: |
ALIYUN::VPC::VSwitch::VSwitchId | The vSwitch ID. |
The following sample code provides an example: |
ALIYUN::VPC::VirtualBorderRouter::RouteTableId | The ID of the virtual border router (VBR). | RegionId: the region ID. By default, the region ID of the stack is used. The following sample code provides an example: |
ALIYUN::VPC::Zone::ZoneId | The information about the zone in the VPC. |
|
Operations
Example 1: AssociationProperty example
In this example, AssociationProperty is set to ALIYUN::ECS::Image::ImageId to query the IDs of all images in the specified region.
JSON format:
{
"FormatVersion": "OOS-2019-06-01",
"Parameters": {
"UserName": {
"Label": "Username",
"Description": "Enter the username",
"Default": "anonymous",
"Type": "String",
"MinLength": "6",
"MaxLength": "12",
"AllowedValues": [
"anonymous",
"user-one",
"user-two"
]
},
"PassWord": {
"Label": "Password",
"NoEcho": "True",
"Description": "Enter the password",
"Type": "String",
"MinLength": "1",
"MaxLength": "41",
"AllowedPattern": "[a-zA-Z0-9]*"
},
"ImageId": {
"Label": "Image",
"Type": "String",
"Description": "Select an image",
"AssociationProperty": "ALIYUN::ECS::Image::ImageId",
"Default": "centos_7_7_x64_20G_alibase_2020****.vhd"
}
}
}YAML format:
FormatVersion: 'OOS-2019-06-01'
Parameters:
UserName:
Label: Username
Description: Enter the username
Default: anonymous
Type: String
MinLength: '6'
MaxLength: '12'
AllowedValues:
- anonymous
- user-one
- user-two
PassWord:
Label: Password
NoEcho: 'True'
Description: Enter the password
Type: String
MinLength: '1'
MaxLength: '41'
AllowedPattern: '[a-zA-Z0-9]*'
ImageId:
Label: Image
Type: String
Description: Select an image
AssociationProperty: ALIYUN::ECS::Image::ImageId
Default: centos_7_7_x64_20G_alibase_2020****.vhdParameter description:
UserName: the username. The value is of the string data type and must be 6 to 12 characters in length. Valid values:
anonymous (default)
user-one
user-two
PassWord: the password. The value is of the string data type. No default value is provided. The value must be 1 to 41 characters in length, and can contain letters and digits.
NoEcho is set to true. A value of true specifies that ROS returns a password masked as asterisks (×) after you query the stack.
ImageId: the image ID. The value is of the String type.
AssociationProperty is set to ALIYUN::ECS::Image::ImageId. This way, the ROS console checks whether the ID of the specified image is available when you create the stack. The ROS console also displays the IDs of other images that are available in the same region as the specified image in a drop-down list.
Example 2: AssociationPropertyMetadata example
In this example, AssociationProperty and AssociationPropertyMetadata are specified to query the vSwitch in the specified VPC and zone. For AssociationPropertyMetadata, RegionId is set to the static field cn-hangzhou. VpcId and ZoneId are set to the variables ${VpcId} and ${EcsZone}, which will be dynamically refreshed based on the values selected for ALIYUN::ECS::VPC::VPCId and ZoneId. This establishes the association between the vSwitch and the VPC and zone.
For parameters configured with AllowedValues such as EcsZone, you can add AutoChangeType in AssociationPropertyMetadata and set its value to false. This displays the configuration information of AllowedValues parameters as a dropdown list on the CloudOps Orchestration Service console page.
JSON format:
{
"FormatVersion": "OOS-2019-06-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"EcsZone": {
"Type": "String",
"AllowedValues": [
"cn-hangzhou-i",
"cn-hangzhou-j",
"cn-hangzhou-k",
"cn-hangzhou-h"
],
"AssociationPropertyMetadata": {
"AutoChangeType": false
}
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"RegionId": "cn-hangzhou",
"VpcId": "${VpcId}",
"ZoneId": "${EcsZone}"
}
}
}
}YAML format:
FormatVersion: 'OOS-2019-06-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
EcsZone:
Type: String
AllowedValues:
- cn-hangzhou-i
- cn-hangzhou-j
- cn-hangzhou-k
- cn-hangzhou-h
AssociationPropertyMetadata:
AutoChangeType: false
VSwitchId:
Type: String
AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
AssociationPropertyMetadata:
RegionId: cn-hangzhou
VpcId: ${VpcId}
ZoneId: ${EcsZone}