Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.62k stars 5.04k forks source link

[BUG] GET Microsoft.DBforPostgreSQL/flexibleServers/migrations @ 2023-12-01-preview returns 400 #30734

Open cjdalan opened 2 days ago

cjdalan commented 2 days ago

API Spec link

specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-12-01-preview/Migrations.json

API Spec version

2023-12-01-preview

Describe the bug

I get an error when sending a GET HTTP request to Microsoft.DBforPostgreSQL/flexibleServers/migrations REST API

Expected behavior

Returns

{
  "message": null,
  "name": "testmigration",
  "nameAvailable": true,
  "reason": null,
  "type": "Microsoft.DBforPostgreSQL/flexibleServers/migrations"
}

Actual behavior

Returns

{'error': {'code': 'InvalidInput', 'message': "Invalid input. Parameter name: 'MigrationResourceId'. Error: Invalid migration resource ID 'subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testResourceGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testServer/migrations/testMigration'.\r\nParameter name: MigrationResourceId"}}

Reproduction Steps

Send a GET HTTP request to https://management.azure.com/subscriptions/${subscription_id}/resourceGroups/${resource_group_name}/providers/Microsoft.DBforPostgreSQL/flexibleServers/${server_name}/migrations/${migration_name}?api-version={api_version}

Environment

No response

v-jiaodi commented 1 day ago

@nasc17 Please help take a look, thanks.