# Get Customer for Managed Provider

```http
GET /managed/customers/{customerId}
```

API: Cicso Umbrella Managed Providers API (version 2.0.0)

Operation ID: getManagedProviderCustomer

Tags: Managed Providers, Umbrella

## Description

Get a customer for the managed provider.

## Servers

```json
[
  {
    "url": "https://api.umbrella.com/{basePath}",
    "variables": {
      "basePath": {
        "default": "admin/v2"
      }
    }
  }
]
```

## Authentication

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

```json
[
  {
    "oauthFlow": [
      "admin.customers:read"
    ]
  }
]
```

### Security schemes

```json
{
  "oauthFlow": {
    "type": "oauth2",
    "description": "The client credential flow.",
    "flows": {
      "clientCredentials": {
        "tokenUrl": "https://api.umbrella.com/auth/v2/token",
        "scopes": {
          "admin.customers:read": "Read admin customers",
          "admin.customers:write": "Write admin customers"
        }
      }
    }
  }
}
```

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| customerId | path | yes | integer (int64) | The ID of the customer. |

### Parameter definitions

```json
[
  {
    "name": "customerId",
    "in": "path",
    "description": "The ID of the customer.",
    "schema": {
      "type": "integer",
      "format": "int64"
    },
    "required": true,
    "example": 1235,
    "$$ref": "#/components/parameters/customerIdParam"
  }
]
```

## Responses

### 200

OK

```json
{
  "description": "OK",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "description": "The properties of the customer.",
        "required": [
          "customerId",
          "customerName",
          "seats"
        ],
        "properties": {
          "customerId": {
            "type": "integer",
            "description": "The ID of the customer.",
            "example": 14,
            "$$ref": "#/components/schemas/customerId"
          },
          "customerName": {
            "type": "string",
            "description": "The customer's organization name.",
            "minLength": 1,
            "maxLength": 255,
            "example": "Cisco",
            "$$ref": "#/components/schemas/customerName"
          },
          "seats": {
            "type": "integer",
            "minimum": 1,
            "description": "The number of users.",
            "example": 100,
            "$$ref": "#/components/schemas/seats"
          }
        },
        "example": {
          "customerId": 124,
          "customerName": "Cisco",
          "seats": 45
        },
        "$$ref": "#/components/schemas/Customer"
      },
      "example": {
        "customerId": 12929,
        "customerName": "cisco",
        "seats": 1000
      }
    }
  }
}
```

### 400

Bad Request

```json
{
  "description": "Bad Request",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "$$ref": "#/components/responses/400Error"
}
```

### 401

Unauthorized

```json
{
  "description": "Unauthorized",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "$$ref": "#/components/responses/401Error"
}
```

### 403

Forbidden

```json
{
  "description": "Forbidden",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "$$ref": "#/components/responses/403Error"
}
```

### 404

Not Found

```json
{
  "description": "Not Found",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "$$ref": "#/components/responses/404Error"
}
```

### 500

Internal Server Error

```json
{
  "description": "Internal Server Error",
  "headers": {
    "Content-Type": {
      "schema": {
        "type": "string"
      },
      "description": "The MIME content type of the response body.",
      "example": "application/json",
      "$$ref": "#/components/headers/Content-Type"
    },
    "Date": {
      "schema": {
        "type": "string",
        "pattern": "^[0-90-90-90-9-0-90-9-0-90-9T0-90-9:0-90-9:0-90-9Z]+$"
      },
      "description": "The timestamp of the response.",
      "example": "2023-03-14T18:34:25Z",
      "$$ref": "#/components/headers/Date"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "$$ref": "#/components/responses/500Error"
}
```

## Additional OpenAPI fields

```json
{
  "__originalOperationId": "getManagedProviderCustomer"
}
```
