diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Delete.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Delete.json new file mode 100644 index 000000000000..b37255831d72 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/serviceGroups/20000000-0001-0000-0000-000000000000?api-version=2026-03-01-preview" + } + }, + "204": {} + }, + "operationId": "DeleteServiceGroup", + "title": "DeleteServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Get.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Get.json new file mode 100644 index 000000000000..093a4cc5f4b0 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0001-0000-0000-000000000000", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/20000000-0001-0000-0000-000000000000", + "properties": { + "displayName": "ServiceGroup 1 Tenant 2", + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "ServiceGroups_Get", + "title": "GetServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_ListAncestors.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_ListAncestors.json new file mode 100644 index 000000000000..0afe872026ae --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_ListAncestors.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://abc.def.com/providers/Microsoft.Management/serviceGroups/20000000-0001-0000-0000-000000000000/listAncestors?api-version=2026-03-01-preview&skipToken=xyz", + "value": [ + { + "name": "Ancestor1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/Ancestor1", + "properties": { + "displayName": "ServiceGroup Ancestor1", + "criticality": 0 + } + }, + { + "name": "Ancestor2", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/Ancestor2", + "properties": { + "displayName": "ServiceGroup Ancestor2" + } + } + ] + } + } + }, + "operationId": "ServiceGroups_ListAncestors", + "title": "ListServiceGroupAncestors" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Patch.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Patch.json new file mode 100644 index 000000000000..c99ff73fc0f8 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Patch.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "ServiceGroup1", + "updateServiceGroupRequest": { + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 2 + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "ServiceGroup1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", + "kind": "App", + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 2, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/providers/Microsoft.Management/operationResults/update/serviceGroups/ServiceGroup1?api-version=2026-03-01-preview" + } + } + }, + "operationId": "UpdateServiceGroup", + "title": "PatchServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Put.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Put.json new file mode 100644 index 000000000000..81a9e3f2577c --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/examples/2026-03-01-preview/ServiceGroup_Put.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "createServiceGroupRequest": { + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 1, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + } + } + }, + "serviceGroupName": "ServiceGroup1" + }, + "responses": { + "200": { + "body": { + "name": "ServiceGroup1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 1, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "ServiceGroup1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 1, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "CreateOrUpdateServiceGroup", + "title": "PutServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/main.tsp b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/main.tsp index a7c9a7bdd8b5..9c5b69d48573 100644 --- a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/main.tsp +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/main.tsp @@ -39,4 +39,9 @@ enum Versions { * The 2024-02-01-preview API version. */ v2024_02_01_preview: "2024-02-01-preview", + + /** + * The 2026-03-01-preview API version. + */ + v2026_03_01_preview: "2026-03-01-preview", } diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/models.tsp b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/models.tsp index 5f2cd83dac7b..1bef141d40b1 100644 --- a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/models.tsp +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/models.tsp @@ -1,10 +1,12 @@ import "@typespec/rest"; import "@typespec/http"; +import "@typespec/versioning"; import "@azure-tools/typespec-azure-core"; import "@azure-tools/typespec-azure-resource-manager"; using TypeSpec.Rest; using TypeSpec.Http; +using TypeSpec.Versioning; using Azure.ResourceManager; using Azure.ResourceManager.Foundations; @@ -84,6 +86,12 @@ model ServiceGroupProperties { */ displayName?: string; + /** + * The criticality designation of the service group. + */ + @added(Versions.v2026_03_01_preview) + criticality?: float64; + /** * The details of the parent serviceGroup. */ diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Delete.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Delete.json new file mode 100644 index 000000000000..b37255831d72 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/serviceGroups/20000000-0001-0000-0000-000000000000?api-version=2026-03-01-preview" + } + }, + "204": {} + }, + "operationId": "DeleteServiceGroup", + "title": "DeleteServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Get.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Get.json new file mode 100644 index 000000000000..093a4cc5f4b0 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "20000000-0001-0000-0000-000000000000", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/20000000-0001-0000-0000-000000000000", + "properties": { + "displayName": "ServiceGroup 1 Tenant 2", + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "ServiceGroups_Get", + "title": "GetServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_ListAncestors.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_ListAncestors.json new file mode 100644 index 000000000000..0afe872026ae --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_ListAncestors.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "20000000-0001-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://abc.def.com/providers/Microsoft.Management/serviceGroups/20000000-0001-0000-0000-000000000000/listAncestors?api-version=2026-03-01-preview&skipToken=xyz", + "value": [ + { + "name": "Ancestor1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/Ancestor1", + "properties": { + "displayName": "ServiceGroup Ancestor1", + "criticality": 0 + } + }, + { + "name": "Ancestor2", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/Ancestor2", + "properties": { + "displayName": "ServiceGroup Ancestor2" + } + } + ] + } + } + }, + "operationId": "ServiceGroups_ListAncestors", + "title": "ListServiceGroupAncestors" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Patch.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Patch.json new file mode 100644 index 000000000000..c99ff73fc0f8 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Patch.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "serviceGroupName": "ServiceGroup1", + "updateServiceGroupRequest": { + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 2 + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "ServiceGroup1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", + "kind": "App", + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 2, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "202": { + "headers": { + "location": "https://management.azure.com/providers/Microsoft.Management/operationResults/update/serviceGroups/ServiceGroup1?api-version=2026-03-01-preview" + } + } + }, + "operationId": "UpdateServiceGroup", + "title": "PatchServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Put.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Put.json new file mode 100644 index 000000000000..81a9e3f2577c --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/examples/ServiceGroup_Put.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2026-03-01-preview", + "createServiceGroupRequest": { + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 1, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + } + } + }, + "serviceGroupName": "ServiceGroup1" + }, + "responses": { + "200": { + "body": { + "name": "ServiceGroup1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 1, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + } + } + }, + "201": { + "body": { + "name": "ServiceGroup1", + "type": "Microsoft.Management/serviceGroups", + "id": "/providers/Microsoft.Management/serviceGroups/ServiceGroup1", + "properties": { + "displayName": "ServiceGroup 1 Name", + "criticality": 1, + "parent": { + "resourceId": "/providers/Microsoft.Management/serviceGroups/RootGroup" + }, + "provisioningState": "Succeeded" + } + } + } + }, + "operationId": "CreateOrUpdateServiceGroup", + "title": "PutServiceGroup" +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/serviceGroups.json b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/serviceGroups.json new file mode 100644 index 000000000000..2fbcde4384c4 --- /dev/null +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/preview/2026-03-01-preview/serviceGroups.json @@ -0,0 +1,459 @@ +{ + "swagger": "2.0", + "info": { + "title": "Groups RP APIs", + "version": "2026-03-01-preview", + "description": "The Groups RP provides Service Groups as a construct to group multiple resources, resource groups, subscriptions and other service groups into an organizational hierarchy and centrally manage access control, policies, alerting and reporting for those resources", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "ServiceGroups" + } + ], + "paths": { + "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}": { + "get": { + "operationId": "ServiceGroups_Get", + "tags": [ + "ServiceGroups" + ], + "description": "Get the details of the serviceGroup", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "serviceGroupName", + "in": "path", + "description": "ServiceGroup Name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_().]{1,90}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceGroup" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "GetServiceGroup": { + "$ref": "./examples/ServiceGroup_Get.json" + } + } + }, + "put": { + "operationId": "CreateOrUpdateServiceGroup", + "tags": [ + "ServiceGroups" + ], + "description": "Create or Update a serviceGroup", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "serviceGroupName", + "in": "path", + "description": "ServiceGroup Name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_().]{1,90}$" + }, + { + "name": "createServiceGroupRequest", + "in": "body", + "description": "ServiceGroup creation parameters", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceGroup" + } + } + ], + "responses": { + "200": { + "description": "Resource 'ServiceGroup' update operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceGroup" + } + }, + "201": { + "description": "Resource 'ServiceGroup' create operation succeeded", + "schema": { + "$ref": "#/definitions/ServiceGroup" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PutServiceGroup": { + "$ref": "./examples/ServiceGroup_Put.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/ServiceGroup" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "UpdateServiceGroup", + "tags": [ + "ServiceGroups" + ], + "description": "Update a serviceGroup", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "serviceGroupName", + "in": "path", + "description": "ServiceGroup Name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_().]{1,90}$" + }, + { + "name": "updateServiceGroupRequest", + "in": "body", + "description": "ServiceGroup update parameters", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceGroup" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceGroup" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "PatchServiceGroup": { + "$ref": "./examples/ServiceGroup_Patch.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location", + "final-state-schema": "#/definitions/ServiceGroup" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "DeleteServiceGroup", + "tags": [ + "ServiceGroups" + ], + "description": "Delete a ServiceGroup", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "serviceGroupName", + "in": "path", + "description": "ServiceGroup Name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_().]{1,90}$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "DeleteServiceGroup": { + "$ref": "./examples/ServiceGroup_Delete.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Management/serviceGroups/{serviceGroupName}/listAncestors": { + "post": { + "operationId": "ServiceGroups_ListAncestors", + "tags": [ + "ServiceGroups" + ], + "description": "Get the details of the serviceGroup's ancestors", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "serviceGroupName", + "in": "path", + "description": "ServiceGroup Name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9\\-_().]{1,90}$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/ServiceGroupCollectionResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "ListServiceGroupAncestors": { + "$ref": "./examples/ServiceGroup_ListAncestors.json" + } + } + } + } + }, + "definitions": { + "ParentServiceGroupProperties": { + "type": "object", + "description": "The details of the parent serviceGroup.", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Management/serviceGroups" + } + ] + } + } + } + }, + "ProvisioningState": { + "type": "string", + "description": "The provisioning state of the serviceGroup. For example, Running", + "enum": [ + "NotStarted", + "Running", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "NotStarted", + "value": "NotStarted", + "description": "NotStarted" + }, + { + "name": "Running", + "value": "Running", + "description": "Running" + }, + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed", + "description": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Canceled" + } + ] + } + }, + "ServiceGroup": { + "type": "object", + "description": "The serviceGroup details.", + "properties": { + "properties": { + "$ref": "#/definitions/ServiceGroupProperties", + "description": "ServiceGroup creation request body parameters." + }, + "kind": { + "type": "string", + "description": "The kind of the serviceGroup.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "type": "object", + "description": "The serviceGroup tags.", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "ServiceGroupCollectionResponse": { + "type": "object", + "description": "Response holding an array of service groups and a nextLink that supports pagination", + "properties": { + "value": { + "type": "array", + "description": "The ServiceGroup items on this page", + "items": { + "$ref": "#/definitions/ServiceGroup" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ServiceGroupProperties": { + "type": "object", + "description": "ServiceGroup creation request body parameters.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "The provisioning state of the serviceGroup. For example, Running", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name of the serviceGroup. For example, ServiceGroupTest1" + }, + "criticality": { + "type": "number", + "format": "double", + "description": "The criticality designation of the service group." + }, + "parent": { + "$ref": "#/definitions/ParentServiceGroupProperties", + "description": "The details of the parent serviceGroup." + } + } + } + }, + "parameters": {} +} diff --git a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/readme.md b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/readme.md index 68f189ee8b60..4d5a26fdd954 100644 --- a/specification/management/resource-manager/Microsoft.Management/ServiceGroups/readme.md +++ b/specification/management/resource-manager/Microsoft.Management/ServiceGroups/readme.md @@ -26,7 +26,17 @@ These are the global settings for the API. ``` yaml openapi-type: arm -tag: package-2024-02-preview +tag: package-2026-03-preview +``` + +### Tag: package-2026-03-preview + +These settings apply only when `--tag=package-2026-03-preview` is specified on the command line. + +```yaml $(tag) == 'package-2026-03-preview' +input-file: + - preview/2026-03-01-preview/serviceGroups.json +v3: true ``` ### Tag: package-2024-02-preview