Skip to content

Commit a4cd5b7

Browse files
nayanjd-doandrewsomethinglooslaNayanJDdanaelhe
authored
MultiRegistry GA API (#944)
* Add name registry get spec * Add name registry post spec * Update naming * Add all registries get spec * Add docker credentials endpoint for multi beta api * Add docker credentials endpoint for multi beta api * Fix multiregistry create spec * Update curl * Update multiregistry get all * Update docker credentials * Add path parameter * Add parameters * Fix package.json * Undo parameters.yml * Fix linting * Update specification/resources/registry/examples/curl/all_registries_get.yml Co-authored-by: Andrew Starr-Bochicchio <[email protected]> * Change operations name * Add GET options, GET subscription, PUT GC and PUT subscription * Add delete repository * Add GET/DELETE manifests and GET/DELETE tags * Add garbage collection and validate name endpoints * Add missing python example and code * Fix misisng code example files * Add missing python and curl examples * fix missing operation ids * Rename some files * Rename some files * Remove list repositories from new beta api * Complete renaming multiregistry to registries * Change Beta to GA * Move multi registry apis to public preview * Add multi registry compatibility for /v2/registry apis * Fix grammatical error * Change section to Container Registries --------- Co-authored-by: Andrew Starr-Bochicchio <[email protected]> Co-authored-by: Anna Lushnikova <[email protected]> Co-authored-by: Nayan Das <[email protected]> Co-authored-by: danaelhe <[email protected]>
1 parent e42ecf0 commit a4cd5b7

File tree

71 files changed

+1418
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1418
-43
lines changed

specification/DigitalOcean-public.v2.yaml

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ tags:
140140
You can only create one registry per DigitalOcean account, but you can use
141141
that registry to create as many repositories as you wish.
142142
143+
- name: Container Registries
144+
description: |-
145+
DigitalOcean now supports up to nine additional registries (for a total maximum of 10) per team
146+
if your container registry uses the Professional subscription plan. The storage is shared among
147+
the registries. This set of new APIs is backward compatible with `/v2/registry`. However, if you
148+
create more than one registry under a Professional plan, some of the `/v2/registry` APIs would not work.
149+
Hence, it is recommended to use `/v2/registries` for multiple registries. Currently, these APIs are in Public Preview.
150+
143151
- name: Databases
144152
description: |-
145153
DigitalOcean's [managed database service](https://docs.digitalocean.com/products/databases)
@@ -1620,6 +1628,78 @@ paths:
16201628
get:
16211629
$ref: "resources/regions/regions_list.yml"
16221630

1631+
/v2/registries:
1632+
get:
1633+
$ref: 'resources/registry/registries_get_all.yml'
1634+
1635+
post:
1636+
$ref: 'resources/registry/registries_create.yml'
1637+
1638+
/v2/registries/{registry_name}:
1639+
get:
1640+
$ref: 'resources/registry/registries_get.yml'
1641+
1642+
delete:
1643+
$ref: 'resources/registry/registries_delete.yml'
1644+
1645+
/v2/registries/{registry_name}/docker-credentials:
1646+
get:
1647+
$ref: 'resources/registry/registries_get_dockerCredentials.yml'
1648+
1649+
/v2/registries/subscription:
1650+
get:
1651+
$ref: "resources/registry/registries_get_subscription.yml"
1652+
1653+
post:
1654+
$ref: "resources/registry/registries_update_subscription.yml"
1655+
1656+
/v2/registries/options:
1657+
get:
1658+
$ref: "resources/registry/registries_get_options.yml"
1659+
1660+
/v2/registries/{registry_name}/garbage-collection:
1661+
get:
1662+
$ref: "resources/registry/registries_get_garbageCollection.yml"
1663+
1664+
post:
1665+
$ref: "resources/registry/registries_run_garbageCollection.yml"
1666+
1667+
/v2/registries/{registry_name}/garbage-collections:
1668+
get:
1669+
$ref: "resources/registry/registries_list_garbageCollections.yml"
1670+
1671+
/v2/registries/{registry_name}/garbage-collection/{garbage_collection_uuid}:
1672+
put:
1673+
$ref: "resources/registry/registries_update_garbageCollection.yml"
1674+
1675+
/v2/registries/{registry_name}/repositoriesV2:
1676+
get:
1677+
$ref: "resources/registry/registries_list_repositoriesV2.yml"
1678+
1679+
/v2/registries/{registry_name}/repositories/{repository_name}:
1680+
delete:
1681+
$ref: "resources/registry/registries_delete_repository.yml"
1682+
1683+
/v2/registries/{registry_name}/repositories/{repository_name}/tags:
1684+
get:
1685+
$ref: "resources/registry/registries_list_repositoryTags.yml"
1686+
1687+
/v2/registries/{registry_name}/repositories/{repository_name}/tags/{repository_tag}:
1688+
delete:
1689+
$ref: "resources/registry/registries_delete_repositoryTag.yml"
1690+
1691+
/v2/registries/{registry_name}/repositories/{repository_name}/digests:
1692+
get:
1693+
$ref: "resources/registry/registries_list_repositoryManifests.yml"
1694+
1695+
/v2/registries/{registry_name}/repositories/{repository_name}/digests/{manifest_digest}:
1696+
delete:
1697+
$ref: "resources/registry/registries_delete_repositoryManifest.yml"
1698+
1699+
/v2/registries/validate-name:
1700+
post:
1701+
$ref: "resources/registry/registries_validate_name.yml"
1702+
16231703
/v2/registry:
16241704
get:
16251705
$ref: "resources/registry/registry_get.yml"
@@ -1629,7 +1709,7 @@ paths:
16291709

16301710
delete:
16311711
$ref: "resources/registry/registry_delete.yml"
1632-
1712+
16331713
/v2/registry/subscription:
16341714
get:
16351715
$ref: "resources/registry/registry_get_subscription.yml"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X GET \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
lang: cURL
2+
source: |-
3+
curl -X POST \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
-d '{"name": "example", "region": "fra1"}' \
7+
"https://api.digitalocean.com/v2/registries"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X DELETE \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries/example"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X DELETE \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries/example/repositories/repo-1"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X DELETE \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries/example/repositories/repo-1/digests/sha256:cb8a924afdf0229ef7515d9e5b3024e23b3eb03ddbba287f4a19c6ac90b8d221"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X DELETE \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries/example/repositories/repo-1/tags/mytag"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X GET \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries/example"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X GET \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
lang: cURL
2+
source: |-
3+
curl -X GET \
4+
-H "Content-Type: application/json" \
5+
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+
"https://api.digitalocean.com/v2/registries/example/docker-credentials"

0 commit comments

Comments
 (0)