Azure / Azure/azure-rest-api-specs

Postgresql Flexible Servers publicNetworkAccess is readonly, despite being clickable in the portal

Open
#26,518 2 comments 1 reaction 0 assignees View on GitHub
customer-reported PostgreSQL question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

I'm trying to set `publicNetworkAccess` for a flexible server, but the rest API has it marked as readonly.

For context, I'm trying to do this in Pulumi, which uses these specs as a source.

[Linked issue in the Pulumi repo](https://github.com/pulumi/pulumi-azure-native/issues/2860)

[JSON spec](https://github.com/Azure/azure-rest-api-specs/blob/14d24d17491d8c2bde24532cb8cc2d663c0ffd9f/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json#L905) for the property

[Microsoft docs](https://learn.microsoft.com/en-us/rest/api/postgresql/flexibleserver/servers/create?view=rest-postgresql-flexibleserver-2022-12-01&tabs=HTTP#network) for the object

For complete, this is the checkbox in Azure Portal :D:
![image](https://github.com/Azure/azure-rest-api-specs/assets/1008567/3af67c01-93ae-472b-9b1f-f71b035c2e81)

Contributor guide

Open the contributing guide

Research direction

Start with the publicNetworkAccess definition at the referenced FlexibleServers.json line and compare it with the Microsoft REST API documentation and the Azure Portal behavior described in the issue. Confirm the intended mutability and ensure the specification accurately represents it, then check the linked Pulumi issue for downstream expectations.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, postgresql
Domain
api, databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.