Outputs are specified in the outputs field. This field is used to display the output of created resources. This field is optional. For example, the following code segment defines the IP address of an ECS instance. You can view the IP address from the response of a stack querying request.
outputs: instance_ip: description: The IP address of the deployed instance value: { get_attr: [my_instance, first_address] }
outputs consists of three parts: output item, description, and value. If multiple output items are declared, use commas (,) to separate them. The following is an example code segment.
outputs: ECSName: description: The Name of the ECS instance newly created. value: { get_attr: [server, name] } floating_ip: description: The floating ip address of the server. value: { get_attr: [floating_ip, floating_ip_address] }
In this command,