Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 15:13:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 15:13:17 +0300
commitcd17aa65132de074aab9ae50ab7bbf7f16428546 (patch)
tree5a195a869320321aa9c3891e7ba5bbc9b9fc5d87 /doc/development/internal_api
parent508f0c4ee719abb1294684eea4a63aa44cd23597 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/internal_api')
-rw-r--r--doc/development/internal_api/index.md44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/development/internal_api/index.md b/doc/development/internal_api/index.md
index aa10bbeda9c..ea4846f966a 100644
--- a/doc/development/internal_api/index.md
+++ b/doc/development/internal_api/index.md
@@ -809,6 +809,50 @@ Example response:
- CustomersDot
+## Storage limit exclusions
+
+The namespace storage limit exclusions endpoint applies storage limit exclusions to top-level namespaces on GitLab.com.
+This endpoint can only be consumed in the Admin Area of GitLab.com.
+
+### Create a storage limit exclusion
+
+Use a POST request to create an `Namespaces::Storage::LimitExclusion`.
+
+```plaintext
+POST /namespaces/:id/storage/limit_exclusion
+```
+
+| Attribute | Type | Required | Description |
+|:------------|:--------|:---------|:------------|
+| `reason` | string | yes | The reason to exclude the namespace. |
+
+Example request:
+
+```shell
+curl --request POST \
+ --url "https://gitlab.com/v4/namespaces/123/storage/limit_exclusion" \
+ --header 'Content-Type: application/json' \
+ --header 'PRIVATE-TOKEN: <admin access token>' \
+ --data '{
+ "reason": "a reason to exclude the Namespace"
+ }'
+```
+
+Example response:
+
+```json
+{
+ "id": 1,
+ "namespace_id": 1234,
+ "namespace_name": "A Namespace Name",
+ "reason": "a reason to exclude the Namespace"
+}
+```
+
+### Known consumers
+
+- GitLab.com Admin Area
+
## CI/CD minutes provisioning
The CI/CD Minutes endpoints are used by [CustomersDot](https://gitlab.com/gitlab-org/customers-gitlab-com) (`customers.gitlab.com`)