Create server

createServer(input: CreateServerInput!): Server!

Requires project.runtime.manage.

Arguments

ArgumentTypeRequired
inputCreateServerInput!Yes

Input fields

input

CreateServerInput

FieldTypeRequired
projectReferenceStringNo
environmentIdID!Yes

Response

Returns Server!. Open the type for its fields and nested types.

FieldType
idID!
shortIdString!
userIdID!
environmentIds[ID!]!
hostnameString!
statusString!
createdAtDateTime!
updatedAtDateTime!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateServer($input: CreateServerInput!) {
  createServer(input: $input) {
    id
    status
    createdAt
    updatedAt
    environmentIds
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "environmentId": "00000000-0000-4000-8000-000000000001"
  }
}