---
# System prepended metadata

title: Untitled

---

```graphql=
type Query {
    instances(keys: [String!], projectKeys: [String!]): [Instance!]!
}

type Mutation {
    createInstance(input: CreateInstanceInput!): CreateInstancePayload!
    deleteInstance(input: DeleteInstanceInput!): DeleteInstancePayload!

    createCredential(input: CreateCredentialInput!): CreateCredentialPayload!
    deleteCredential(input: DeleteCredentialInput!): DeleteCredentialPayload!
}

input CreateInstanceInput {
    description: String!
    dataCenterKey: String!
    projectKey: String!
}

type CreateInstancePayload {
    instance: Instance!
    credential: Credential!
    secretKey: String!
}

input DeleteInstanceInput {
    key: ID!
}

type DeleteInstancePayload {
    deletedInstance: Instance!
}

input CreateCredentialInput {
    instanceKey: ID!
}

type CreateCredentialPayload {
    instance: Instance!
    credential: Credential!
    secretKey: String!
}

input DeleteCredentialInput {
    instanceKey: ID!
    accessKey: ID!
}

type DeletCredentialPayload {
    instance: Instance!
}

type Instance {
    key: String!
    description: String
    dataCenterKey: String!
    projectKey: String!
    credentials: [Credential!]!
    createdAt(format: DateTimeFormat = RFC3339): String!
}

type Credential {
    accessKey: String!
}

enum DateTimeFormat {
    RFC3339
}
```
