Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger and Examples for the new Scoped tokens feature of Azure Container registry #5543

Merged
merged 10 commits into from
May 20, 2019
Next Next commit
Add APIs and Models to support scope map and tokens for ACR
mnltejaswini committed May 4, 2019

Unverified

This user has not yet uploaded their public signing key.
commit 02797865d8630e78d98804f08bb84e276d303bba

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2017-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"scopeMapName": "myScopeMap",
"scopeMapCreateParameters": {
"properties": {
"description": "Developer Scopes",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/delete"
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"name": "myScopeMap",
"type": "Microsoft.ContainerRegistry/registries/scopeMaps",
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/delete"
],
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"name": "myScopeMap",
"type": "Microsoft.ContainerRegistry/registries/scopeMaps",
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/delete"
],
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"api-version": "2017-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"tokenName": "myToken",
"tokenCreateParameters": {
"properties": {
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
"name": "myToken",
"type": "Microsoft.ContainerRegistry/registries/tokens",
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
"name": "myToken",
"type": "Microsoft.ContainerRegistry/registries/tokens",
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2017-10-01",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"tokenName": "myToken",
"generateKeysParameters": {
"expiry": "1Day"
}
},
"responses": {
"200": {
"body": {
"username": "myToken",
"passwords": [
{
"expiry": "2017-03-01T23:14:37.0707808Z",
"name": "password",
"value": "00000000000000000000000000000000"
},
{
"expiry": "2017-03-01T23:14:37.0707808Z",
"name": "password2",
"value": "00000000000000000000000000000000"
}
]
}
}
}
}