forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CustomContainer property to 2021-06-01-preview api version to sup…
…port bring your own container feature (Azure#14073) * Add CustomContainer property to 2021-03-03-preview api versionto support byoc feature * remove jvmOptions in examples * add two new properties, command and args * link the example files * prettier check * change to 2021-06-01-preview api version * resolve credScan issue Co-authored-by: Xuyang Cao <xuycao@microsoft.com>
- Loading branch information
Showing
4 changed files
with
454 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
193 changes: 193 additions & 0 deletions
193
...tform/preview/2021-06-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
{ | ||
"parameters": { | ||
"deploymentResource": { | ||
"properties": { | ||
"source": { | ||
"type": "Container", | ||
"customContainer": { | ||
"server": "myacr.azurecr.io", | ||
"containerImage": "myContainerImage:v1", | ||
"command": [ | ||
"/bin/sh" | ||
], | ||
"args": [ | ||
"-c", | ||
"while true; do echo hello; sleep 10;done" | ||
], | ||
"imageRegistryCredential": { | ||
"username": "myUsername", | ||
"password": "myPassword" | ||
} | ||
} | ||
}, | ||
"deploymentSettings": { | ||
"resourceRequests": { | ||
"cpu": "1000m", | ||
"memory": "3Gi" | ||
}, | ||
"environmentVariables": { | ||
"env": "test" | ||
} | ||
}, | ||
"instances": null | ||
} | ||
}, | ||
"sku": { | ||
"name": "S0", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
}, | ||
"api-version": "2021-06-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"appName": "myapp", | ||
"deploymentName": "mydeployment" | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"source": { | ||
"type": "Container", | ||
"customContainer": { | ||
"server": "myacr.azurecr.io", | ||
"containerImage": "myContainerImage:v1", | ||
"imageRegistryCredential": { | ||
"username": "myUsername", | ||
"password": "" | ||
} | ||
} | ||
}, | ||
"appName": "myapp", | ||
"deploymentSettings": { | ||
"cpu": 1, | ||
"memoryInGB": 3, | ||
"resourceRequests": { | ||
"cpu": "1000m", | ||
"memory": "3Gi" | ||
}, | ||
"environmentVariables": { | ||
"env": "test" | ||
} | ||
}, | ||
"provisioningState": "Creating", | ||
"status": "Running", | ||
"active": false, | ||
"instances": [ | ||
{ | ||
"name": "instance1", | ||
"status": "Running", | ||
"discoveryStatus": "N/A", | ||
"startTime": "2020-08-26T01:55:02Z" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"name": "S0", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/apps/deployments", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment", | ||
"name": "mydeployment" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"source": { | ||
"type": "Container", | ||
"customContainer": { | ||
"server": "myacr.azurecr.io", | ||
"containerImage": "myContainerImage:v1", | ||
"imageRegistryCredential": { | ||
"username": "myUsername", | ||
"password": "" | ||
} | ||
} | ||
}, | ||
"appName": "myapp", | ||
"deploymentSettings": { | ||
"cpu": 1, | ||
"memoryInGB": 3, | ||
"resourceRequests": { | ||
"cpu": "1000m", | ||
"memory": "3Gi" | ||
}, | ||
"environmentVariables": { | ||
"env": "test" | ||
} | ||
}, | ||
"provisioningState": "Succeeded", | ||
"status": "Running", | ||
"active": false, | ||
"instances": [ | ||
{ | ||
"name": "instance1", | ||
"status": "Running", | ||
"discoveryStatus": "N/A", | ||
"startTime": "2020-08-26T01:55:02Z" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"name": "S0", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/apps/deployments", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment", | ||
"name": "mydeployment" | ||
} | ||
}, | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"source": { | ||
"type": "Source", | ||
"customContainer": { | ||
"server": "myacr.azurecr.io", | ||
"containerImage": "myContainerImage:v1", | ||
"imageRegistryCredential": { | ||
"username": "myUsername", | ||
"password": "" | ||
} | ||
} | ||
}, | ||
"appName": "myapp", | ||
"deploymentSettings": { | ||
"cpu": 1, | ||
"memoryInGB": 3, | ||
"resourceRequests": { | ||
"cpu": "1000m", | ||
"memory": "3Gi" | ||
}, | ||
"environmentVariables": { | ||
"env": "test" | ||
} | ||
}, | ||
"provisioningState": "Updating", | ||
"status": "Running", | ||
"active": false, | ||
"instances": [ | ||
{ | ||
"name": "instance1", | ||
"status": "Running", | ||
"discoveryStatus": "N/A", | ||
"startTime": "2020-08-26T01:55:02Z" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"name": "S0", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/apps/deployments", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment", | ||
"name": "mydeployment" | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...soft.AppPlatform/preview/2021-06-01-preview/examples/Deployments_Get_CustomContainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-06-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myResourceGroup", | ||
"serviceName": "myservice", | ||
"appName": "myapp", | ||
"deploymentName": "mydeployment" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"source": { | ||
"type": "Container", | ||
"customContainer": { | ||
"server": "myacr.azurecr.io", | ||
"containerImage": "myContainerImage:v1", | ||
"command": [ | ||
"/bin/sh" | ||
], | ||
"args": [ | ||
"-c", | ||
"while true; do echo hello; sleep 10;done" | ||
], | ||
"imageRegistryCredential": { | ||
"username": "myUsername", | ||
"password": "" | ||
} | ||
} | ||
}, | ||
"appName": "myapp", | ||
"deploymentSettings": { | ||
"cpu": 1, | ||
"memoryInGB": 3, | ||
"resourceRequests": { | ||
"cpu": "1000m", | ||
"memory": "3Gi" | ||
}, | ||
"environmentVariables": { | ||
"env": "test" | ||
} | ||
}, | ||
"provisioningState": "Succeeded", | ||
"status": "Running", | ||
"active": false, | ||
"instances": [ | ||
{ | ||
"name": "instance1", | ||
"status": "Running", | ||
"discoveryStatus": "N/A", | ||
"startTime": "2020-08-26T01:55:02Z" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"name": "S0", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
}, | ||
"type": "Microsoft.AppPlatform/Spring/apps/deployments", | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment", | ||
"name": "mydeployment" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.