资源编排服务 RFS-更新资源栈:请求示例

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

请求示例

  • 更新资源栈的描述信息

    PATCH https://{endpoint}/v1/ba2b9930c977f71edaeaa3a5e96a8ff1/stacks/my_hello_world_stack
    
    {
      "stack_id" : "1b15e005-bdbb-4bd7-8f9a-a09b6774b4b3",
      "description" : "my hello world stack"
    }
  • 关闭资源栈的删除保护和自动回滚

    PATCH https://{endpoint}/v1/ba2b9930c977f71edaeaa3a5e96a8ff1/stacks/my_hello_world_stack
    
    {
      "stack_id" : "1b15e005-bdbb-4bd7-8f9a-a09b6774b4b3",
      "enable_deletion_protection" : false,
      "enable_auto_rollback" : false
    }
  • 更新资源栈中的委托信息

    PATCH https://{endpoint}/v1/ba2b9930c977f71edaeaa3a5e96a8ff1/stacks/my_hello_world_stack
    
    {
      "stack_id" : "1b15e005-bdbb-4bd7-8f9a-a09b6774b4b3",
      "agencies" : {
        "provider_name" : "my_hello_world_provider",
        "agency_name" : "my_agency"
      }
    }
support.huaweicloud.com/api-aos/UpdateStack.html