Skip to content

Add GraphQL mutation to revoke an agent token

Tiger Watson requested to merge revoke-agent-token-mutation into master

What does this MR do and why?

Adds a GraphQL mutation to revoke a Cluster Agent token via the recently added status field.

Screenshots or screen recordings

GraphQL request:

mutation {
  clusterAgentTokenRevoke(input: { id: "gid://gitlab/Clusters::AgentToken/119" } ) {
    errors
  }
}

Response:

{
  "data": {
    "clusterAgentTokenRevoke": {
      "errors": []
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

#348386 (closed)

Edited by Tiger Watson

Merge request reports