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

How to get id of created resource? #30

Open
the-avant-it opened this issue Nov 4, 2024 · 2 comments
Open

How to get id of created resource? #30

the-avant-it opened this issue Nov 4, 2024 · 2 comments

Comments

@the-avant-it
Copy link

If you execute Services.Vpc.NetworkService.CreateAsync you will get resource of type Operation, which has metadata that should contain id of resource, but it is of type Any, so you can't get id from it

@the-avant-it
Copy link
Author

Figured out that you have to call CreateNetworkMetadata.Parser.ParseFrom(createNetworkResponse.Metadata.Value).NetworkId

I will leave this issue opened till I create MR to add this information to documentation

@dmchmk
Copy link
Member

dmchmk commented Nov 8, 2024

Hi, @the-avant-it, thanks a lot! We'll be waiting for your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants