|
| 1 | +{ |
| 2 | + "operationId": "Builders_CreateOrUpdate", |
| 3 | + "title": "Builders_CreateOrUpdate_0", |
| 4 | + "parameters": { |
| 5 | + "subscriptionId": "00000000-0000-0000-0000-000000000000", |
| 6 | + "resourceGroupName": "rg", |
| 7 | + "builderName": "testBuilder", |
| 8 | + "api-version": "2023-05-02-preview", |
| 9 | + "builderEnvelope": { |
| 10 | + "identity": { |
| 11 | + "type": "SystemAssigned,UserAssigned", |
| 12 | + "userAssignedIdentities": { |
| 13 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} |
| 14 | + } |
| 15 | + }, |
| 16 | + "properties": { |
| 17 | + "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", |
| 18 | + "containerRegistries": [ |
| 19 | + { |
| 20 | + "containerRegistryServer": "test.azurecr.io", |
| 21 | + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" |
| 22 | + }, |
| 23 | + { |
| 24 | + "containerRegistryServer": "test2.azurecr.io", |
| 25 | + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" |
| 26 | + } |
| 27 | + ] |
| 28 | + }, |
| 29 | + "tags": { |
| 30 | + "company": "Microsoft" |
| 31 | + }, |
| 32 | + "location": "eastus" |
| 33 | + } |
| 34 | + }, |
| 35 | + "responses": { |
| 36 | + "200": { |
| 37 | + "body": { |
| 38 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder", |
| 39 | + "name": "testBuilder", |
| 40 | + "type": "Microsoft.App/builders", |
| 41 | + "location": "eastus", |
| 42 | + "identity": { |
| 43 | + "type": "SystemAssigned,UserAssigned", |
| 44 | + "principalId": "00000000-0000-0000-0000-000000000000", |
| 45 | + "tenantId": "00000000-0000-0000-0000-000000000000", |
| 46 | + "userAssignedIdentities": { |
| 47 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { |
| 48 | + "clientId": "00000000-0000-0000-0000-000000000000", |
| 49 | + "principalId": "00000000-0000-0000-0000-000000000000" |
| 50 | + } |
| 51 | + } |
| 52 | + }, |
| 53 | + "properties": { |
| 54 | + "provisioningState": "Succeeded", |
| 55 | + "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", |
| 56 | + "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234", |
| 57 | + "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234", |
| 58 | + "containerRegistries": [ |
| 59 | + { |
| 60 | + "containerRegistryServer": "test.azurecr.io", |
| 61 | + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" |
| 62 | + }, |
| 63 | + { |
| 64 | + "containerRegistryServer": "test2.azurecr.io", |
| 65 | + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" |
| 66 | + } |
| 67 | + ] |
| 68 | + }, |
| 69 | + "systemData": { |
| 70 | + |
| 71 | + "createdByType": "User", |
| 72 | + "createdAt": "2022-10-11T11:05:51.4940669Z", |
| 73 | + "lastModifiedBy": "[email protected]", |
| 74 | + "lastModifiedByType": "User", |
| 75 | + "lastModifiedAt": "2022-10-11T11:05:51.4940669Z" |
| 76 | + }, |
| 77 | + "tags": { |
| 78 | + "company": "Microsoft" |
| 79 | + } |
| 80 | + } |
| 81 | + }, |
| 82 | + "201": { |
| 83 | + "headers": { |
| 84 | + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.App/locations/{location}/operationStatuses/{operationId}" |
| 85 | + }, |
| 86 | + "body": { |
| 87 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/builders/testBuilder", |
| 88 | + "name": "testBuilder", |
| 89 | + "type": "Microsoft.App/builders", |
| 90 | + "location": "eastus", |
| 91 | + "identity": { |
| 92 | + "type": "SystemAssigned,UserAssigned", |
| 93 | + "principalId": "00000000-0000-0000-0000-000000000000", |
| 94 | + "tenantId": "00000000-0000-0000-0000-000000000000", |
| 95 | + "userAssignedIdentities": { |
| 96 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": { |
| 97 | + "clientId": "00000000-0000-0000-0000-000000000000", |
| 98 | + "principalId": "00000000-0000-0000-0000-000000000000" |
| 99 | + } |
| 100 | + } |
| 101 | + }, |
| 102 | + "properties": { |
| 103 | + "provisioningState": "Creating", |
| 104 | + "environmentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/managedEnvironments/testEnv", |
| 105 | + "buildComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/build1234", |
| 106 | + "patchComputeId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.App/jobs/patcher1234", |
| 107 | + "containerRegistries": [ |
| 108 | + { |
| 109 | + "containerRegistryServer": "test.azurecr.io", |
| 110 | + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" |
| 111 | + }, |
| 112 | + { |
| 113 | + "containerRegistryServer": "test2.azurecr.io", |
| 114 | + "identityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1" |
| 115 | + } |
| 116 | + ] |
| 117 | + }, |
| 118 | + "systemData": { |
| 119 | + |
| 120 | + "createdByType": "User", |
| 121 | + "createdAt": "2022-10-11T11:05:51.4940669Z", |
| 122 | + "lastModifiedBy": "[email protected]", |
| 123 | + "lastModifiedByType": "User", |
| 124 | + "lastModifiedAt": "2022-10-11T11:05:51.4940669Z" |
| 125 | + }, |
| 126 | + "tags": { |
| 127 | + "company": "Microsoft" |
| 128 | + } |
| 129 | + } |
| 130 | + } |
| 131 | + } |
| 132 | +} |
0 commit comments