资源编排服务 RFS-创建资源栈实例:请求示例

时间:2024-12-12 20:29:55

请求示例

  • 通过Domain Ids Array传递成员账号信息,且指定创建资源栈实例在region间串行进行

    POST https://{endpoint}/v1/stack-sets/my_hello_world_stack_set/stack-instances
    
    {
      "deployment_targets" : {
        "regions" : [ "cn-north-7" ],
        "domain_ids" : [ "6cbcca2a2f114a63841bdbc7a19b7b12", "1e03325ba3cc47b1fdb03f3771bbb4f3" ]
      },
      "operation_preferences" : {
        "region_concurrency_type" : "SEQUENTIAL"
      }
    }
  • 通过Domain Ids Signed URL传递成员账号信息,且指定创建资源栈实例在region间并行进行

    POST https://{endpoint}/v1/stack-sets/my_hello_world_stack_set/stack-instances
    
    {
      "deployment_targets" : {
        "regions" : [ "cn-north-7" ],
        "domain_ids_uri" : "https://my-obs.obs.cn-north-7.ulanqab.huawei.com/domain_ids.csv"
      },
      "operation_preferences" : {
        "region_concurrency_type" : "PARALLEL"
      }
    }
support.huaweicloud.com/api-aos/CreateStackInstance.html