# Get Organization Networks

```http
GET /organizations/{organizationId}/networks
```

API: Meraki Dashboard API (version 1.77.0)

Operation ID: getOrganizationNetworks

Tags: organizations, configure, networks

## Description

List the networks that the user has privileges on in an organization

## Servers

```json
[
  {
    "url": "https://api.meraki.com/{basePath}",
    "variables": {
      "basePath": {
        "default": "api/v1"
      }
    }
  }
]
```

## Authentication

Satisfy any one of the following alternatives. Within each alternative, all listed schemes are required. An empty object allows anonymous access.

```json
[
  {
    "oauth2": [
      "dashboard:general:config:read"
    ]
  }
]
```

### Security schemes

```json
{
  "oauth2": {
    "type": "oauth2",
    "description": "This API uses OAuth 2 with the authorization code grant flow. [More info](https://developer.cisco.com/meraki/api-v1/authorization/)",
    "flows": {
      "authorizationCode": {
        "authorizationUrl": "https://as.meraki.com/oauth/authorize",
        "tokenUrl": "https://as.meraki.com/oauth/token",
        "scopes": {
          "camera:config:read": "Cameras (MV)",
          "camera:config:write": "Cameras (MV)",
          "camera:telemetry:read": "Cameras (MV)",
          "camera:telemetry:write": "Cameras (MV)",
          "dashboard:general:config:read": "Entire dashboard, excluding identity and access management",
          "dashboard:general:config:write": "Entire dashboard, excluding identity and access management",
          "dashboard:general:telemetry:read": "Entire dashboard, excluding identity and access management",
          "dashboard:general:telemetry:write": "Entire dashboard, excluding identity and access management",
          "dashboard:iam:config:read": "Dashboard related to identity and access management, including early access features",
          "dashboard:iam:config:write": "Dashboard related to identity and access management, including early access features",
          "dashboard:iam:telemetry:read": "Dashboard related to identity and access management, including early access features",
          "dashboard:iam:telemetry:write": "Dashboard related to identity and access management, including early access features",
          "dashboard:licensing:config:read": "Licensing",
          "dashboard:licensing:config:write": "Licensing",
          "dashboard:licensing:telemetry:read": "Licensing",
          "dashboard:licensing:telemetry:write": "Licensing",
          "iot:gateway:general:config:read": "Sensor Connect (IoT Control)",
          "iot:gateway:general:config:write": "Sensor Connect (IoT Control)",
          "iot:gateway:general:telemetry:read": "Sensor Connect (IoT Control)",
          "iot:gateway:general:telemetry:write": "Sensor Connect (IoT Control)",
          "iot:gateway:onboarding:config:read": "Sensor Connect (IoT Onboarding)",
          "iot:gateway:onboarding:config:write": "Sensor Connect (IoT Onboarding)",
          "policy:config:read": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "policy:config:write": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "policy:telemetry:read": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "policy:telemetry:write": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "sdwan:config:read": "Secure SD-WAN (MX including MXIGZ)",
          "sdwan:config:write": "Secure SD-WAN (MX including MXIGZ)",
          "sdwan:telemetry:read": "Secure SD-WAN (MX including MXIGZ)",
          "sdwan:telemetry:write": "Secure SD-WAN (MX including MXIGZ)",
          "sensor:config:read": "Sensors (MT)",
          "sensor:config:write": "Sensors (MT)",
          "sensor:telemetry:read": "Sensors (MT)",
          "sensor:telemetry:write": "Sensors (MT)",
          "sm:config:read": "Endpoint Management (SM)",
          "sm:config:write": "Endpoint Management (SM)",
          "sm:telemetry:read": "Endpoint Management (SM)",
          "sm:telemetry:write": "Endpoint Management (SM)",
          "switch:config:read": "Switches (MS)",
          "switch:config:write": "Switches (MS)",
          "switch:telemetry:read": "Switches (MS)",
          "switch:telemetry:write": "Switches (MS)",
          "wireless:config:read": "Wireless (MR)",
          "wireless:config:write": "Wireless (MR)",
          "wireless:telemetry:read": "Wireless (MR)",
          "wireless:telemetry:write": "Wireless (MR)"
        }
      }
    }
  }
}
```

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| organizationId | path | yes | string | Organization ID |
| configTemplateId | query | no | string | An optional parameter that is the ID of a config template. Will return all networks bound to that template. |
| isBoundToConfigTemplate | query | no | boolean | An optional parameter to filter config template bound networks. If configTemplateId is set, this cannot be false. |
| tags | query | no | array\<string\> | An optional parameter to filter networks by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). |
| tagsFilterType | query | no | string | An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return networks which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected. |
| productTypes | query | no | array\<string\> | An optional parameter to filter networks by product type. Results will have at least one of the included product types. |
| perPage | query | no | integer | The number of entries per page returned. Acceptable range is 3 - 100000. Default is 1000. |
| startingAfter | query | no | string | A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. |
| endingBefore | query | no | string | A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. |

### Parameter definitions

```json
[
  {
    "name": "organizationId",
    "in": "path",
    "description": "Organization ID",
    "schema": {
      "type": "string"
    },
    "required": true
  },
  {
    "name": "configTemplateId",
    "in": "query",
    "description": "An optional parameter that is the ID of a config template. Will return all networks bound to that template.",
    "schema": {
      "type": "string"
    }
  },
  {
    "name": "isBoundToConfigTemplate",
    "in": "query",
    "description": "An optional parameter to filter config template bound networks. If configTemplateId is set, this cannot be false.",
    "schema": {
      "type": "boolean"
    }
  },
  {
    "name": "tags",
    "in": "query",
    "description": "An optional parameter to filter networks by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below).",
    "schema": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  {
    "name": "tagsFilterType",
    "in": "query",
    "description": "An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return networks which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected.",
    "schema": {
      "type": "string",
      "enum": [
        "withAllTags",
        "withAnyTags"
      ]
    }
  },
  {
    "name": "productTypes",
    "in": "query",
    "description": "An optional parameter to filter networks by product type. Results will have at least one of the included product types.",
    "schema": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "appliance",
          "camera",
          "campusGateway",
          "cellularGateway",
          "secureConnect",
          "sensor",
          "switch",
          "systemsManager",
          "wireless",
          "wirelessController"
        ]
      }
    }
  },
  {
    "name": "perPage",
    "in": "query",
    "description": "The number of entries per page returned. Acceptable range is 3 - 100000. Default is 1000.",
    "schema": {
      "type": "integer"
    }
  },
  {
    "name": "startingAfter",
    "in": "query",
    "description": "A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.",
    "schema": {
      "type": "string"
    }
  },
  {
    "name": "endingBefore",
    "in": "query",
    "description": "A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.",
    "schema": {
      "type": "string"
    }
  }
]
```

## Responses

### 200

Successful operation

```json
{
  "description": "Successful operation",
  "content": {
    "application/json": {
      "schema": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "Network ID"
            },
            "organizationId": {
              "type": "string",
              "description": "Organization ID"
            },
            "name": {
              "type": "string",
              "description": "Network name"
            },
            "productTypes": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "List of the product types that the network supports"
            },
            "timeZone": {
              "type": "string",
              "description": "Timezone of the network"
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Network tags"
            },
            "enrollmentString": {
              "type": "string",
              "description": "Enrollment string for the network"
            },
            "url": {
              "type": "string",
              "description": "URL to the network Dashboard UI"
            },
            "notes": {
              "type": "string",
              "description": "Notes for the network"
            },
            "isBoundToConfigTemplate": {
              "type": "boolean",
              "description": "If the network is bound to a config template"
            }
          }
        }
      },
      "example": [
        {
          "id": "N_24329156",
          "organizationId": "2930418",
          "name": "Main Office",
          "productTypes": [
            "appliance",
            "switch",
            "wireless"
          ],
          "timeZone": "America/Los_Angeles",
          "tags": [
            "tag1",
            "tag2"
          ],
          "enrollmentString": "my-enrollment-string",
          "url": "https://n1.meraki.com//n//manage/nodes/list",
          "notes": "Additional description of the network",
          "isBoundToConfigTemplate": false
        }
      ]
    }
  },
  "headers": {
    "Link": {
      "schema": {
        "type": "string"
      },
      "description": "A comma-separated list of first, last, prev, and next relative links used for subsequent paginated requests."
    }
  }
}
```

## Code samples

### Meraki Python Library

```python
import meraki

# Defining your API key as a variable in source code is discouraged.
# This API key is for a read-only docs-specific environment.
# In your own code, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/

API_KEY = 'your-key-here'

dashboard = meraki.DashboardAPI(API_KEY)

organization_id = '549236'

response = dashboard.organizations.getOrganizationNetworks(
    organization_id, total_pages='all'
)

print(response)
```

## Additional OpenAPI fields

```json
{
  "__originalOperationId": "getOrganizationNetworks"
}
```
