Azure / Azure/azure-rest-api-specs

`Microsoft.Web/sites/host/functionKeys@2022-03-01` - violates RPC-Get-V1-04

Open
#25,362 0 comments 1 reaction 0 assignees View on GitHub
Service Attention Web Apps
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

`Microsoft.Web/sites/host/functionKeys@2022-03-01` - violates RPC-Get-V1-04 - All Resources Must support GET - including nested and proxy types

This resource only supports PUT, it doesn't support GET.

PUT
```
PUT https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/henglu320web/providers/Microsoft.Web/sites/henglu320web/host/default/functionKeys/tf_key?api-version=2022-03-01 HTTP/2.0
accept: application/json
content-type: application/json
user-agent: HashiCorp Terraform/1.5.2 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
x-ms-correlation-request-id: 63ec026e-818a-49b1-9492-a00e21b0ad4e
authorization: Bearer [secret]
content-length: 48
accept-encoding: gzip

{"properties":{"name":"tf_key","value":"safds"}}

HTTP/2.0 201
cache-control: no-cache
pragma: no-cache
content-length: 299
content-type: application/json
expires: -1
strict-transport-security: max-age=31536000; includeSubDomains
x-ms-request-id: b74fe659-1b15-4e4a-a791-49af0c733fce
x-ms-ratelimit-remaining-subscription-writes: 1199
server: Microsoft-IIS/10.0
x-aspnet-version: 4.0.30319
x-powered-by: ASP.NET
x-ms-correlation-request-id: 63ec026e-818a-49b1-9492-a00e21b0ad4e
x-ms-routing-request-id: SOUTHEASTASIA:20230817T073936Z:04d5b3b7-63c1-4ce6-85cc-b55f544ee24e
x-content-type-options: nosniff
date: Thu, 17 Aug 2023 07:39:35 GMT

{"id":"/subscriptions/{subscription_id}/resourceGroups/henglu320web/providers/Microsoft.Web/sites/henglu320web/host/default/functionKeys/tf_key","name":"tf_key","type":"Microsoft.Web/sites/host/functionKeys","location":"West Europe","properties":{"name":"tf_key","value":"safds"}}
```

GET
```
GET https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/henglu320web/providers/Microsoft.Web/sites/henglu320web/host/default/functionKeys/tf_key?api-version=2022-03-01 HTTP/2.0
user-agent: HashiCorp Terraform/1.5.2 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
x-ms-correlation-request-id: 63ec026e-818a-49b1-9492-a00e21b0ad4e
authorization: Bearer [secret]
content-length: 0

HTTP/2.0 405
cache-control: no-cache
pragma: no-cache
allow: PUT,DELETE
content-length: 92
content-type: application/xml; charset=utf-8
expires: -1
strict-transport-security: max-age=31536000; includeSubDomains
x-ms-ratelimit-remaining-subscription-reads: 11998
server: Microsoft-IIS/10.0
x-aspnet-version: 4.0.30319
x-powered-by: ASP.NET
x-ms-request-id: 62c767a9-ee70-4230-95ac-e7f18628ed4a
x-ms-correlation-request-id: 63ec026e-818a-49b1-9492-a00e21b0ad4e
x-ms-routing-request-id: SOUTHEASTASIA:20230817T073937Z:62c767a9-ee70-4230-95ac-e7f18628ed4a
x-content-type-options: nosniff
date: Thu, 17 Aug 2023 07:39:36 GMT

The requested resource does not support http method 'GET'.
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the TypeSpec definition for Microsoft.Web/sites/host/functionKeys@2022-03-01 and checking how its operations are declared. Verify the resource against RPC-Get-V1-04 and confirm that a GET request succeeds for the shown resource path without breaking the existing PUT behavior.

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.