{
  "opencollection": "1.0.0",
  "info": {
    "name": "Calyptia Cloud agent core_instance_secret API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "core_instance_secret",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Core Instance Secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://cloud-api.calyptia.com/v1/core_instances/:coreInstanceID/secrets",
            "params": [
              {
                "name": "coreInstanceID",
                "value": "",
                "type": "path"
              },
              {
                "name": "last",
                "value": "",
                "type": "query",
                "description": "Limit to the last secrets."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Paginate secrets before the given cursor."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Secrets from a core instance with backward pagination."
        },
        {
          "info": {
            "name": "Create Core Instance Secret",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cloud-api.calyptia.com/v1/core_instances/:coreInstanceID/secrets",
            "params": [
              {
                "name": "coreInstanceID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a new secret within a core instance.\nThe secret will be created with the given name and content.\nIf `encypted` is set to `true`, the secret will be encrypted using the\ncore instance's encryption key.\nThe name must be unique among all secrets within the core instance."
        },
        {
          "info": {
            "name": "Update Core Instance Secret",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://cloud-api.calyptia.com/v1/core_instance_secrets/:coreInstanceSecretID",
            "params": [
              {
                "name": "coreInstanceSecretID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a secret within a core instance.\nThe secret will be updated with the given name and content.\nIf `encypted` is set to `true`, the secret will be encrypted using the\ncore instance's encryption key."
        },
        {
          "info": {
            "name": "Delete Core Instance Secret",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://cloud-api.calyptia.com/v1/core_instance_secrets/:coreInstanceSecretID",
            "params": [
              {
                "name": "coreInstanceSecretID",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a secret within a core instance."
        }
      ]
    }
  ],
  "bundled": true
}