From 056cc51226bf2eef3d3a7e7bdca875a4a571026b Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev <1664475+ruslany@users.noreply.github.com> Date: Mon, 6 Jun 2022 23:05:44 -0700 Subject: [PATCH] Add traffic info to revisions api (#19054) * Add traffic info to a revision api * Add deprecated prop * Prettier fixes * 1pdate based on new proposal * Rename * Change names * minor fix --- .../2022-05-01/ContainerAppsRevisions.json | 27 +++++++++++++++++++ .../2022-05-01/examples/Revisions_Get.json | 9 ++++++- .../2022-05-01/examples/Revisions_List.json | 9 ++++++- 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json index 455a262a00ee..0dca517cf280 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/ContainerAppsRevisions.json @@ -436,6 +436,17 @@ "type": "integer", "readOnly": true }, + "trafficLabels": { + "description": "Traffic labels associated with this revision", + "type": "array", + "items": { + "$ref": "#/definitions/TrafficLabel" + }, + "x-ms-identifiers": [ + "label" + ], + "readOnly": true + }, "provisioningError": { "description": "Optional Field - Platform Error Message", "type": "string", @@ -476,6 +487,22 @@ } } }, + "TrafficLabel": { + "description": "Traffic label information", + "type": "object", + "properties": { + "label": { + "description": "Traffic label assigned to a revision", + "type": "string", + "readOnly": true + }, + "fqdn": { + "description": "Fully qualified domain name of a labelled revision", + "type": "string", + "readOnly": true + } + } + }, "RevisionCollection": { "description": "Container App Revisions collection ARM resource.", "required": [ diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json index 8c2de360fcfa..323fa04ef317 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_Get.json @@ -15,7 +15,7 @@ "type": "Microsoft.App/containerApps/revisions", "properties": { "createdTime": "2021-05-24T21:24:22+00:00", - "fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io", + "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", "template": { "containers": [ { @@ -42,6 +42,13 @@ ] } }, + "trafficWeight": 80, + "trafficLabels": [ + { + "label": "blue", + "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" + } + ], "active": true, "replicas": 1 } diff --git a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json index aed17be62c3c..0839c7bf4723 100644 --- a/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json +++ b/specification/app/resource-manager/Microsoft.App/stable/2022-05-01/examples/Revisions_List.json @@ -16,7 +16,7 @@ "type": "Microsoft.App/containerApps/revisions", "properties": { "createdTime": "2021-05-24T21:24:22+00:00", - "fqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerapps.k4apps.io", + "fqdn": "testcontainerApp0-pjxhsye.politehill-ab123456.eastus.azurecontainerapps.io", "template": { "containers": [ { @@ -43,6 +43,13 @@ ] } }, + "trafficWeight": 80, + "trafficLabels": [ + { + "label": "blue", + "fqdn": "testcontainerApp0---blue.politehill-ab123456.eastus.azurecontainerapps.io" + } + ], "active": true, "replicas": 1 }