update and rename warehouse
POST {{baseUrl}}/api/v2/warehouses/{{name}}:rename?ifExists=false
Specifies a new identifier for the warehouse; must be unique for current account.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
ifExists | boolean | Query parameter that specifies how to handle the request for a resource that does not exist: |
true
: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource.false
: The endpoint throws an error if the resource doesn't exist. |
Request Body
{"name"=>"\"\"\"\"\"\"\"\"\"\"\"jJ\"\"\"", "warehouse_type"=>"<string>", "warehouse_size"=>"<string>", "wait_for_completion"=>"false", "max_cluster_count"=>"<integer>", "min_cluster_count"=>"<integer>", "scaling_policy"=>"<string>", "auto_suspend"=>"<integer>", "auto_resume"=>"false", "initially_suspended"=>"false", "resource_monitor"=>"\"=g`J3\"\"n9]\"", "comment"=>"<string>", "enable_query_acceleration"=>"false", "query_acceleration_max_scale_factor"=>"<integer>", "max_concurrency_level"=>"<integer>", "statement_queued_timeout_in_seconds"=>"<integer>", "statement_timeout_in_seconds"=>"<integer>", "type"=>"<string>", "size"=>"<string>", "state"=>"<string>", "started_clusters"=>"<integer>", "running"=>"<integer>", "queued"=>"<integer>", "is_default"=>"<boolean>", "is_current"=>"<boolean>", "available"=>"<string>", "provisioning"=>"<string>", "quiescing"=>"<string>", "other"=>"<string>", "created_on"=>"<dateTime>", "resumed_on"=>"<dateTime>", "updated_on"=>"<dateTime>", "owner"=>"<string>", "budget"=>"<string>", "kind"=>"<string>", "owner_role_type"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cstring\u003e"}