Azure / Azure/azure-rest-api-specs
MISSING_RESOURCE_ID identified in operation "WebApps_ListSlotConfigurationNames" of MICROSOFT.WEB on API version 2022-03-01
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
## MISSING_RESOURCE_ID identified in operation "WebApps_ListSlotConfigurationNames" of MICROSOFT.WEB on API version 2021-03-01
### Description
I found the id is missing from its GET response, also its name is incorrect, it should be slotConfigNames instead of uniwebndhjate7835.
### Reference
1. ARM Fully-Qualified Resource Type
```
Microsoft.Web/sites/config
```
2. API Version
```
2022-03-01, this happens to all api-versions
```
3. Swagger issue type
```
Swagger Correctness
```
4. OperationId
```
WebApps_ListSlotConfigurationNames
```
5. Swagger GitHub permalink
```
https://github.com/Azure/azure-rest-api-specs/blob/eb2b882ef0a4aa5956ca38cfa566fc4d7cfb3fb0/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json#L2163
```
6. Error code
```
The name should be slotConfigNames instead of uniwebndhjate7835.
ROUNDTRIP_MISSING_PROPERTY: the id is null
```
7. Request traces
```
GET https://management.azure.com/subscriptions/0000-000-000-0000/resourceGroups/henglu5192/providers/Microsoft.Web/sites/uniwebndhjate7835/config/slotConfigNames?api-version=2022-03-01
{
"id": null,
"name": "uniwebndhjate7835",
"type": "Microsoft.Web/sites",
"location": "East US",
"tags": {
"displayName": "PartsUnlimitedWebsite",
"hidden-related:/subscriptions/0000-000-000-0000/resourceGroups/henglu5192/providers/Microsoft.Web/serverfarms/MHCHostPlanN14w3257": "Resource"
},
"properties": {
"connectionStringNames": [
"DefaultConnectionString"
],
"appSettingNames": [
"keys:ApplicationInsights:InstrumentationKey"
],
"azureStorageConfigNames": [],
"secretsCollectionNames": []
}
}
```
Contributor guide
Research direction
Start at specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/WebApps.json near the WebApps_ListSlotConfigurationNames operation. Compare its GET response with the Microsoft.Web/sites/config resource reference and verify the modeled name is slotConfigNames and the id is present; done when the round-trip check no longer reports a missing resource id across the affected API versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100