Admiral

Projects

Retrieve a run's plan diffs

GET
/v1/projects/{project}/environments/{environment}/runs/{run}/planDiff
  • NOT_FOUND when no run has that resource name.
    • FAILED_PRECONDITION until the plan has finished.

Scope: run:read

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

project*string

The project id.

environment*string

The environment id.

run*string

The run id.

Response Body

application/json

curl -X GET "https://example.com/v1/projects/string/environments/string/runs/string/planDiff"
{  "diff": {    "resources": [      {        "component": "string",        "resource": {          "kubernetes": {            "api_version": "string",            "kind": "string",            "namespace": "string",            "name": "string"          }        },        "action": "ACTION_UNSPECIFIED",        "before": null,        "after": null,        "sensitive_paths": [          {            "path": {              "segments": [                {                  "index": 0                }              ]            },            "changed": true          }        ],        "unknown_paths": [          {            "segments": [              {                "index": 0              }            ]          }        ],        "replace_paths": [          {            "segments": [              {                "index": 0              }            ]          }        ],        "kubernetes": {          "taken_fields": [            {              "manager": "string",              "path": {                "segments": [                  {                    "index": 0                  }                ]              }            }          ]        }      }    ],    "outputs": [      {        "component": "string",        "name": "string",        "action": "ACTION_UNSPECIFIED",        "before": null,        "after": null,        "sensitive": true,        "unknown": true      }    ],    "drifted_resources": [      {        "component": "string",        "resource": {          "kubernetes": {            "api_version": "string",            "kind": "string",            "namespace": "string",            "name": "string"          }        },        "action": "ACTION_UNSPECIFIED",        "before": null,        "after": null,        "sensitive_paths": [          {            "path": {              "segments": [                {                  "index": 0                }              ]            },            "changed": true          }        ],        "unknown_paths": [          {            "segments": [              {                "index": 0              }            ]          }        ],        "replace_paths": [          {            "segments": [              {                "index": 0              }            ]          }        ],        "kubernetes": {          "taken_fields": [            {              "manager": "string",              "path": {                "segments": [                  {                    "index": 0                  }                ]              }            }          ]        }      }    ],    "errors": [      {        "component": "string",        "resource": {          "kubernetes": {            "api_version": "string",            "kind": "string",            "namespace": "string",            "name": "string"          }        },        "summary": "string",        "detail": "string",        "location": "string"      }    ]  }}