Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get database name for Azure Cosmos DB for PostgreSQL #26873

Closed
vanta-cladelpino opened this issue Aug 18, 2023 · 12 comments
Closed

Get database name for Azure Cosmos DB for PostgreSQL #26873

vanta-cladelpino opened this issue Aug 18, 2023 · 12 comments
Assignees
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@vanta-cladelpino
Copy link

Hi, I'm not being able to find how to get the database name of a PostgreSQL Citus CosmosDB powered database using the js SDK.

I'm able to get information on the cluster or servers via the properties of https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-arm-cosmosdbforpostgresql/1.0.0-beta.1/classes/CosmosDBForPostgreSQL.html but none of these includes the database name.

thanks in advance!


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-triage Workflow: This issue needs the team to triage. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 18, 2023
@xirzec xirzec added Mgmt This issue is related to a management-plane library. and removed Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. labels Aug 18, 2023
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Aug 18, 2023
@kazrael2119
Copy link
Contributor

will check

@kazrael2119
Copy link
Contributor

kazrael2119 commented Aug 22, 2023

@vanta-cladelpino ,I think you use a wrong package, @azure/arm-postgresql may the correct package you want
https://www.npmjs.com/package/@azure/arm-postgresql

@vanta-cladelpino
Copy link
Author

vanta-cladelpino commented Aug 22, 2023

@kazrael2119 Hmmm, I'm talking about Cosmos DB for PostgreSQL, and can fetch all the cluster/nodes information, plus the package has the exact name of the service, so I don't really think thats the case.

@kazrael2119
Copy link
Contributor

@kazrael2119 Hmmm, I'm talking about Cosmos DB for PostgreSQL, and can fetch all the cluster/nodes information, plus the package has the exact name of the service, so I don't really think thats the case.

@vanta-cladelpino do you mean you want to get the database name which is created when creating a cluster?
image

@kazrael2119
Copy link
Contributor

kazrael2119 commented Aug 23, 2023

If as the above is your issue ,after my investigation, there's a parameter called databaseName on portal.
image
but in sdk , we can not set it and get it beacuse sdk is generated from swagger, so I think this is a service issue.

@qiaozha qiaozha added the Service Attention Workflow: This issue is responsible by Azure service team. label Aug 23, 2023
@github-actions
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sajeetharan @abkolant-MSFT @pjohari-ms @simorenoh @v1k1.

@niklarin
Copy link

Correct, we recently introduced the custom database name in Azure Cosmos DB for PostgreSQL. It can be done only during cluster provisioning. Today this capability is enabled in the Azure portal only. We're working on updating REST APIs with this functionality (that would include GET for DB name). We expect the REST APIs update to be published in the next 6-8 weeks or so. Once REST APIs are updated the change will be brought down to Terraform, Azure SDKs, and Azure CLI.

@vanta-cladelpino
Copy link
Author

thanks!!

@lirenhe lirenhe assigned kazrael2119 and unassigned qiaozha Aug 25, 2023
@kazrael2119
Copy link
Contributor

kazrael2119 commented Sep 14, 2023

Correct, we recently introduced the custom database name in Azure Cosmos DB for PostgreSQL. It can be done only during cluster provisioning. Today this capability is enabled in the Azure portal only. We're working on updating REST APIs with this functionality (that would include GET for DB name). We expect the REST APIs update to be published in the next 6-8 weeks or so. Once REST APIs are updated the change will be brought down to Terraform, Azure SDKs, and Azure CLI.

Hi @niklarin , does the feature have been published? this month we have CosmosDBforPostgreSQL release request:https://github.com/Azure/sdk-release-request/issues/4461 , but in the generated code:#27007, it doesn't contains this feature. If publish is done, I think we can include this feature directly in this release

@niklarin
Copy link

@kazrael2119 No, not yet. Tentatively the next update for the REST APIs for Azure Cosmos DB for PostgreSQL will be done in October / November and will include quite a few additions including the DB name at provisioning time.

@lirenhe
Copy link
Member

lirenhe commented Sep 21, 2023

@kazrael2119, please help to check the next release to verify update and then close this item. Thanks.

@lirenhe lirenhe reopened this Sep 21, 2023
@sajeetharan
Copy link
Member

@lirenhe please do not open issues related to PgSQL on this repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

7 participants