ves-io-schema-views-terraform_parameters-CustomAPI-GetStatus

Examples of performing viewsterraformparameters CustomAPI GetStatus

Usecase:

Perform GetStatus on terraform_parameters

Request:

Request using vesctl:

vesctl request rpc views_terraform_parameters.CustomAPI.GetStatus -i request.yaml --uri /public/namespaces/namespace-literal/terraform_parameters/view_kind-literal/view_name-literal/status --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

status:
  metadata: {}
  objectRefs:
  - kind: terraform_parameters
    name: aws_vpc_site-view-1
    namespace: default
    tenant: customer1

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/namespace-literal/terraform_parameters/view_kind-literal/view_name-literal/status?namespace=&view_kind=&view_name='

curl response:

HTTP/1.1 200 OK
Content-Length: 487
Content-Type: application/json
Date: Wed, 12 May 2021 11:19:13 GMT
Vary: Accept-Encoding

{
  "status": {
    "metadata": {
      "uid": "",
      "creator_class": "",
      "creator_id": "",
      "status_id": "",
      "creation_timestamp": null,
      "publish": "STATUS_DO_NOT_PUBLISH",
      "vtrp_id": ""
    },
    "object_refs": [
      {
        "kind": "terraform_parameters",
        "uid": "",
        "tenant": "customer1",
        "namespace": "default",
        "name": "aws_vpc_site-view-1"
      }
    ],
    "plan_status": null,
    "apply_status": null
  }
}