Azure / Azure/azure-rest-api-specs

[Network] The id of ssl option and ssl predefined policy doesn't contain the value of resource group

Open
#18,227 1 comment 0 reactions 0 assignees View on GitHub
Network - Application Gateway Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

For the [list available ssl options method](https://github.com/Azure/azure-rest-api-specs/blob/17429b093099ec2d321da3ee0da38ffccd4beaa3/specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/applicationGateway.json#L1036), the returned id only has the key of resource group but not the value, which is weird. Why provide a resource group without value? Can the key of resource group also be removed?
```json
{
"name": "default",
"id": "/subscriptions/mySub/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default",
"type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions",
"properties": {
"predefinedPolicies": [
{
"name": "AppGwSslPolicy20150501",
"id": "/subscriptions/mySub/resourceGroups//providers/Microsoft.Network/ApplicationGatewayAvailableSslOptions/default/ApplicationGatewaySslPredefinedPolicy/AppGwSslPolicy20150501",
"properties": {
"cipherSuites": [
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
"TLS_DHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_DHE_RSA_WITH_AES_256_CBC_SHA",
"TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
"TLS_RSA_WITH_AES_256_GCM_SHA384",
"TLS_RSA_WITH_AES_128_GCM_SHA256",
"TLS_RSA_WITH_AES_256_CBC_SHA256",
"TLS_RSA_WITH_AES_128_CBC_SHA256",
"TLS_RSA_WITH_AES_256_CBC_SHA",
"TLS_RSA_WITH_AES_128_CBC_SHA",
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
"TLS_DHE_DSS_WITH_AES_256_CBC_SHA256",
"TLS_DHE_DSS_WITH_AES_128_CBC_SHA256",
"TLS_DHE_DSS_WITH_AES_256_CBC_SHA",
"TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
"TLS_RSA_WITH_3DES_EDE_CBC_SHA",
"TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA"
],
"minProtocolVersion": "TLSv1_0"
},
"type": "Microsoft.Network/ApplicationGatewayAvailableSslOptions/ApplicationGatewaySslPredefinedPolicy"
}
]
}
}
```
Same issue exists in the ssl predefined policy.

Contributor guide

Open the contributing guide

Research direction

Start at the linked specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/applicationGateway.json definition for the list available SSL options method, then inspect the corresponding SSL predefined policy definition. Compare their documented resource ID templates with the reported responses; done means the specification consistently represents the intended resource-group path for both affected IDs.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.