|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "api-version": "2023-08-01-preview", |
| 4 | + "subscriptionId": "00000000-0000-0000-0000-000000000000", |
| 5 | + "resourceGroupName": "myResourceGroup", |
| 6 | + "registryName": "myRegistry", |
| 7 | + "cacheRuleName": "myCacheRule", |
| 8 | + "cacheRuleCreateParameters": { |
| 9 | + "properties": { |
| 10 | + "sourceRepository": "docker.io/library/hello-world", |
| 11 | + "targetRepository": "cached-docker-hub/hello-world", |
| 12 | + "credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet" |
| 13 | + } |
| 14 | + } |
| 15 | + }, |
| 16 | + "responses": { |
| 17 | + "200": { |
| 18 | + "body": { |
| 19 | + "type": "Microsoft.ContainerRegistry/registries/cacheRules", |
| 20 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule", |
| 21 | + "name": "myCacheRule", |
| 22 | + "properties": { |
| 23 | + "credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet", |
| 24 | + "sourceRepository": "docker.io/library/hello-world", |
| 25 | + "targetRepository": "cached-docker-hub/hello-world", |
| 26 | + "creationDate": "2022-11-07T18:20:33.8374968+00:00", |
| 27 | + "provisioningState": "Succeeded" |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
| 31 | + "201": { |
| 32 | + "headers": { |
| 33 | + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule/operationStatuses/cacherules-00000000-0000-0000-0000-000000000000?api-version=2023-08-01-preview" |
| 34 | + }, |
| 35 | + "body": { |
| 36 | + "type": "Microsoft.ContainerRegistry/registries/cacheRules", |
| 37 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule", |
| 38 | + "name": "myCacheRule", |
| 39 | + "properties": { |
| 40 | + "credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet", |
| 41 | + "sourceRepository": "docker.io/library/hello-world", |
| 42 | + "targetRepository": "cached-docker-hub/hello-world", |
| 43 | + "creationDate": "2022-11-07T18:20:33.8374968+00:00", |
| 44 | + "provisioningState": "Creating" |
| 45 | + } |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | +} |
0 commit comments