Create a service

POST {{baseUrl}}/api/v2/databases/:database/schemas/:schema/services?createMode=errorIfExists

Create a service, with standard create modifiers as query parameters. See the Service component definition for what is required to be provided in the request body.

Request Params

KeyDatatypeRequiredDescription
createModestringQuery 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. - ifNotExists: Creates a new resource when an alter is requested for a non-existent resource.

Request Body

{"name"=>"hS7ZO", "compute_pool"=>"<string>", "spec"=>{"spec_type"=>"<string>"}, "external_access_integrations"=>["<string>", "<string>"], "auto_resume"=>"<boolean>", "min_instances"=>"<integer>", "max_instances"=>"<integer>", "query_warehouse"=>"zQXx3HU", "comment"=>"<string>", "database_name"=>"OmhjK7pf", "schema_name"=>"\">&.\"\"\"\"(NS\\3\"\"\"", "owner"=>"<string>", "dns_name"=>"<string>", "created_on"=>"<dateTime>", "updated_on"=>"<dateTime>", "resumed_on"=>"<dateTime>", "owner_role_type"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cstring\u003e&quot;}