---
title: "Get job deployment restrictions"
method: GET
path: "/job/{jobId}/deploymentRestriction"
tags: ["Job Deployment Restriction"]
---

# Get job deployment restrictions

`GET /job/{jobId}/deploymentRestriction`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/job/{jobId}/deploymentRestriction`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/job/:jobId/deploymentRestriction/get.ts> (a function with typed inputs; its response is checked against the schema)

Get job deployment restrictions

## Path parameters

- `jobId` string, uuid, required

## Response `200`

Get job deployment restrictions

- JobDeploymentRestrictionResponseList
  - `results` JobDeploymentRestrictionResponse[]
    - `id` string, uuid, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time
    - `mode` 'EXCLUDE' | 'MATCH', required: Match mode will rebuild app only if specified items are updated. Exclude mode will not rebuild app if specified items are updated.
    - `type` 'PATH', required
    - `value` string, required: For `PATH` restrictions, the value must not start with `/`

## Other responses

- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
