{
  "opencollection": "1.0.0",
  "info": {
    "name": "ZEDEDA App Profiles Service AppProfileService KubernetesSecrets API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "KubernetesSecrets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all Kubernetes secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/cluster/instances/kubernetes/secrets",
            "headers": [
              {
                "name": "X-Request-Id",
                "value": ""
              }
            ]
          },
          "docs": "Retrieve a list of all configured Kubernetes secrets with their metadata and status information. Secret data is not included in list responses for security reasons.\n\n**Query Parameters:**\n- `projectId` (optional): Filter secrets by project ID\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/secrets\nGET /v1/cluster/instances/kubernetes/secrets?projectId=project-123\n```\n\n**Example Response:**\n```json\n{\n  \"secrets\": [\n    {\n      \"id\": \"secret-abc123\",\n      \"_type\": \"Secret\",\n      \""
        },
        {
          "info": {
            "name": "Create a new Kubernetes secret",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/cluster/instances/kubernetes/secrets",
            "headers": [
              {
                "name": "X-Request-Id",
                "value": ""
              }
            ]
          },
          "docs": "Create a new Kubernetes secret for storing sensitive data like SSH keys, basic authentication credentials, or other secrets needed for deployments.\n\n**Example Request (SSH Secret):**\n```json\n{\n  \"metadata\": {\n    \"name\": \"git-ssh-key\",\n    \"type\": \"SECRET_TYPE_SSH\",\n    \"project_id\": \"project-123\"\n  },\n  \"data\": {\n    \"ssh_private_key\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIIEpAIBAAKCAQEA...\",\n    \"ssh_public_key\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ...\"\n  }\n}\n```\n\n**Example Request (SECRET_TY"
        },
        {
          "info": {
            "name": "Get Kubernetes secret by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/cluster/instances/kubernetes/secrets/id/:secretId",
            "headers": [
              {
                "name": "X-Request-Id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "secretId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the secret. This field is required and must be a valid secret ID."
              }
            ]
          },
          "docs": "Retrieve detailed information about a specific Kubernetes secret including its metadata and decrypted data.\n\n**Example Request:**\n```\nGET /v1/cluster/instances/kubernetes/secrets/id/secret-abc123\n```\n\n**Example Response (SSH Secret):**\n```json\n{\n  \"id\": \"secret-abc123\",\n  \"_type\": \"Secret\",\n  \"kind\": \"Secret\",\n  \"metadata\": {\n    \"name\": \"git-ssh-key\",\n    \"type\": \"SECRET_TYPE_SSH\",\n    \"creation_timestamp\": \"2024-01-15T10:30:00Z\",\n    \"project_id\": \"project-123\",\n    \"state\": {\n      \"error\": f"
        }
      ]
    }
  ],
  "bundled": true
}