{
  "opencollection": "1.0.0",
  "info": {
    "name": "CyCognito API V1 Reference Assets Cloud Connectors API",
    "version": "0.0.1"
  },
  "items": [
    {
      "info": {
        "name": "Cloud Connectors",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve multiple cloud environment data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/cloud-environments",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieve a list of cloud environments."
        },
        {
          "info": {
            "name": "Add new AWS connector",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/cloud-environments",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Create a new cloud environment for the specified provider. **Note:** This endpoint currently only supports setting up connectors for single AWS accounts. The accompanying YAML script can be downloaded via the link generated by the *Get YAML for AWS* API endpoint."
        },
        {
          "info": {
            "name": "Get YAML for AWS",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/cloud-environments/script",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Generate the YAML script required for creating new AWS connectors."
        },
        {
          "info": {
            "name": "Retrieve single cloud environment data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/cloud-environments/:cloud-env-id",
            "params": [
              {
                "name": "cloud-env-id",
                "value": "",
                "type": "path",
                "description": "A unique identifier for the cloud environment. This ID can be extrapolated from the `cloud-env-id` field (from the *Add new connector* response) by removing the `cloud-env/` prefix (e.g., `12312-3213-12341`)."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Fetch data for a single cloud environment."
        },
        {
          "info": {
            "name": "Test connector",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/cloud-environments/:cloud-env-id/test-connector",
            "params": [
              {
                "name": "cloud-env-id",
                "value": "",
                "type": "path",
                "description": "A unique identifier for the cloud environment. This ID can be extrapolated from the `cloud-env-id` field (from the *Add new connector* response) by removing the `cloud-env/` prefix (e.g., `12312-3213-12341`)."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Trigger a test to determine whether the specified cloud connector is configured correctly."
        }
      ]
    }
  ],
  "bundled": true
}