Spacelift · Example Payload

Spacelift Stack Example

Example Spacelift stack object returned from the GraphQL API stacks query

Infrastructure as CodeFinOpsDevOpsPlatform EngineeringTerraformGitOps

Spacelift Stack Example is an example object payload from Spacelift, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptiongraphqlQuerygraphqlResponse

Example Payload

spacelift-stack-example.json Raw ↑
{
  "summary": "Spacelift Stack Example",
  "description": "Example Spacelift stack object returned from the GraphQL API stacks query",
  "graphqlQuery": {
    "query": "{ stacks { id name description createdAt administrative labels repository branch state space driftDetection autoApply } }"
  },
  "graphqlResponse": {
    "data": {
      "stacks": [
        {
          "id": "production-networking",
          "name": "Production Networking",
          "description": "Manages VPC, subnets, and security groups for the production environment",
          "createdAt": "2025-01-15T10:30:00Z",
          "administrative": false,
          "labels": ["production", "networking", "terraform"],
          "repository": "acme/infrastructure",
          "branch": "main",
          "state": "FINISHED",
          "space": "root",
          "driftDetection": true,
          "autoApply": false
        },
        {
          "id": "staging-compute",
          "name": "Staging Compute",
          "description": "ECS clusters and task definitions for staging",
          "createdAt": "2025-02-20T14:00:00Z",
          "administrative": false,
          "labels": ["staging", "compute"],
          "repository": "acme/infrastructure",
          "branch": "develop",
          "state": "PLANNING",
          "space": "root",
          "driftDetection": false,
          "autoApply": true
        }
      ]
    }
  }
}