資源編排ROS
更新時(shí)間:
本文介紹了資源編排ROS使用示例,您可以參見示例進(jìn)行操作。
本產(chǎn)品已接入阿里云資源編排服務(wù)(簡稱ROS),您可以使ROS管理流程。
使用示例
您可以使用ROS控制臺或CLI創(chuàng)建資源。模板的定義請參見流程資源定義文檔。
- YAML格式流程資源模板
ROSTemplateFormatVersion: '2015-09-01' Resources: Flow: Type: 'ALIYUN::FNF::Flow' Properties: Description: flow created from ros Definition: |- version: v1 type: flow steps: - type: pass name: pass1 Name: test-ros Outputs: CreatedTime: Description: The flow creation time. Value: 'Fn::GetAtt': - Flow - CreatedTime LastModifiedTime: Description: The flow last modified time. Value: 'Fn::GetAtt': - Flow - LastModifiedTime Id: Description: The flow ID. Value: 'Fn::GetAtt': - Flow - Id
- JSON格式流程資源模板
{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "Flow": { "Type": "ALIYUN::FNF::Flow", "Properties": { "Description": "flow created from ros", "Definition": "version: v1\ntype: flow\nsteps:\n - type: pass\n name: pass1", "Name": "test-ros" } } }, "Outputs": { "CreatedTime": { "Description": "The flow creation time.", "Value": { "Fn::GetAtt": [ "Flow", "CreatedTime" ] } }, "LastModifiedTime": { "Description": "The flow last modified time.", "Value": { "Fn::GetAtt": [ "Flow", "LastModifiedTime" ] } }, "Id": { "Description": "The flow ID.", "Value": { "Fn::GetAtt": [ "Flow", "Id" ] } } } }
文檔內(nèi)容是否對您有幫助?