Skip to content

Commit 3157961

Browse files
authored
Adding more Service Group examples for CheckNameAvailability in Microsoft.Management (#37227)
1 parent 3bfadcf commit 3157961

File tree

3 files changed

+51
-5
lines changed

3 files changed

+51
-5
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-02-01-preview",
4+
"checkNameAvailabilityRequest": {
5+
"name": "nameTocheck",
6+
"type": "Microsoft.Management/serviceGroups"
7+
},
8+
"Cache-Control": "no-cache"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true
14+
}
15+
}
16+
}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-02-01-preview",
4+
"checkNameAvailabilityRequest": {
5+
"name": "nameTocheck",
6+
"type": "Microsoft.Management/serviceGroups"
7+
},
8+
"Cache-Control": "no-cache"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": false,
14+
"reason": "AlreadyExists",
15+
"message": "Error message"
16+
}
17+
}
18+
}
19+
}

specification/managementgroups/resource-manager/Microsoft.Management/ManagementGroups/preview/2024-02-01-preview/management.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@
732732
"CheckNameAvailability"
733733
],
734734
"operationId": "CheckNameAvailability",
735-
"description": "Checks if the specified management group name is valid and unique",
735+
"description": "Checks if the specified management group or service group name is valid and unique",
736736
"parameters": [
737737
{
738738
"$ref": "#/parameters/ApiVersionParameter"
@@ -758,6 +758,12 @@
758758
"x-ms-examples": {
759759
"CheckManagementGroupNameAvailability": {
760760
"$ref": "./examples/CheckManagementGroupNameAvailability.json"
761+
},
762+
"CheckServiceGroupNameAvailability_Available": {
763+
"$ref": "./examples/CheckServiceGroupNameAvailability_Available.json"
764+
},
765+
"CheckServiceGroupNameAvailability_Unavailable": {
766+
"$ref": "./examples/CheckServiceGroupNameAvailability_Unavailable.json"
761767
}
762768
}
763769
}
@@ -981,7 +987,7 @@
981987
}
982988
},
983989
"CheckNameAvailabilityResult": {
984-
"description": "Describes the result of the request to check management group name availability.",
990+
"description": "Describes the result of the request to check management group name or service group name availability.",
985991
"properties": {
986992
"nameAvailable": {
987993
"description": "Required. True indicates name is valid and available. False indicates the name is invalid, unavailable, or both.",
@@ -1959,7 +1965,7 @@
19591965
"description": "The users specific permissions to this item."
19601966
},
19611967
"CheckNameAvailabilityRequest": {
1962-
"description": "Management group name availability check parameters.",
1968+
"description": "Management group or service group name availability check parameters.",
19631969
"type": "object",
19641970
"properties": {
19651971
"name": {
@@ -1969,14 +1975,18 @@
19691975
"type": {
19701976
"type": "string",
19711977
"enum": [
1972-
"Microsoft.Management/managementGroups"
1978+
"Microsoft.Management/managementGroups",
1979+
"Microsoft.Management/serviceGroups"
19731980
],
19741981
"x-ms-enum": {
19751982
"name": "Type",
19761983
"modelAsString": false,
19771984
"values": [
19781985
{
19791986
"value": "Microsoft.Management/managementGroups"
1987+
},
1988+
{
1989+
"value": "Microsoft.Management/serviceGroups"
19801990
}
19811991
]
19821992
},
@@ -2119,7 +2129,7 @@
21192129
"name": "checkNameAvailabilityRequest",
21202130
"in": "body",
21212131
"required": true,
2122-
"description": "Management group name availability check parameters.",
2132+
"description": "Management group or service group name availability check parameters.",
21232133
"schema": {
21242134
"$ref": "#/definitions/CheckNameAvailabilityRequest"
21252135
},

0 commit comments

Comments
 (0)