---
updatedAt: 2026-10-06T17:40:07.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /list-gateways

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Infrastructure & connectivity",
    "version": "3.0"
  },
  "paths": {
    "/list-gateways": {
      "post": {
        "operationId": "listGateways",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/listGateways"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/listGatewaysResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Gateway"
        ],
        "x-docs-category": "Infrastructure & connectivity",
        "x-docs-group": "Gateway"
      }
    }
  },
  "tags": [
    {
      "name": "Gateway"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      },
      "listGatewaysResponse": {
        "description": "listGatewaysResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GatewaysListResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "CfInfo": {
        "properties": {
          "cf_name": {
            "type": "string",
            "x-go-name": "Name"
          },
          "description": {
            "type": "string",
            "x-go-name": "Description"
          },
          "hash": {
            "type": "string",
            "x-go-name": "Hash"
          },
          "id": {
            "type": "string",
            "x-go-name": "Id"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "GWClusterStatus": {
        "type": "string",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "GatewaysListResponse": {
        "description": "GatewaysListResponse Gateway cluster identity list",
        "properties": {
          "clusters": {
            "items": {
              "$ref": "#/components/schemas/GwClusterIdentity"
            },
            "type": "array",
            "x-go-name": "GwClusterList"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "GwClusterIdentity": {
        "properties": {
          "action_allowed": {
            "type": "boolean",
            "x-go-name": "ActionAllowed"
          },
          "allowed": {
            "type": "boolean",
            "x-go-name": "Allowed"
          },
          "allowed_access_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "AllowedAccessIDs"
          },
          "cluster_name": {
            "type": "string",
            "x-go-name": "ClusterName"
          },
          "cluster_url": {
            "type": "string",
            "x-go-name": "ClusterUrl"
          },
          "current_gw": {
            "type": "boolean",
            "x-go-name": "CurrentGW"
          },
          "customer_fragment_ids": {
            "description": "Deprecated - use CustomerFragments instead",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "CustomerFragmentIDs"
          },
          "customer_fragments": {
            "items": {
              "$ref": "#/components/schemas/CfInfo"
            },
            "type": "array",
            "x-go-name": "CustomerFragments"
          },
          "default_protection_key_id": {
            "format": "int64",
            "type": "integer",
            "x-go-name": "DefProtectionKeyID"
          },
          "default_secret_location": {
            "type": "string",
            "x-go-name": "DefSecretLocation"
          },
          "display_name": {
            "type": "string",
            "x-go-name": "DisplayName"
          },
          "id": {
            "format": "int64",
            "type": "integer",
            "x-go-name": "Id"
          },
          "is_kerberos_auth_enabled": {
            "type": "boolean",
            "x-go-name": "IsKerberosAuthEnabled"
          },
          "is_ldap_auth_enabled": {
            "type": "boolean",
            "x-go-name": "IsLdapAuthEnabled"
          },
          "serverless_type": {
            "type": "string",
            "x-go-name": "ServerlessType"
          },
          "status": {
            "$ref": "#/components/schemas/GWClusterStatus"
          },
          "status_description": {
            "type": "string",
            "x-go-name": "StatusDescription"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "listGateways": {
        "properties": {
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          }
        },
        "title": "listGateways is a command that returns a list of gateways.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```