Create a stage
POST {{baseUrl}}/api/v2/databases/:database/schemas/:schema/stages?createMode=errorIfExists
Create a stage, with standard create modifiers as query parameters. See the Stage component definition for what is required to be provided in the request body.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
createMode | string | Query parameter allowing support for different modes of resource creation. Possible values include: |
errorIfExists
: Throws an error if you try to create a resource that already exists.orReplace
: Automatically replaces the existing resource with the current one.ifNotExists
: Creates a new resource when an alter is requested for a non-existent resource. |
Request Body
{"name"=>"\"\"\"eyb2\"\"\"\"\"", "kind"=>"PERMANENT", "url"=>"<string>", "endpoint"=>"<string>", "storage_integration"=>"\"I\"\"\"\"\"\"\"\"%x\"", "comment"=>"<string>", "credentials"=>{"credential_type"=>"<string>"}, "encryption"=>{"type"=>"AZURE_CSE", "master_key"=>"<string>", "kms_key_id"=>"<string>"}, "directory_table"=>{"enable"=>false, "refresh_on_create"=>true, "auto_refresh"=>false, "notification_integration"=>"<string>"}, "created_on"=>"<dateTime>", "has_credentials"=>"<boolean>", "has_encryption_key"=>"<boolean>", "owner"=>"<string>", "owner_role_type"=>"<string>", "region"=>"<string>", "cloud"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cstring\u003e"}