ForeverConfused
ForeverConfused

Reputation: 1777

How do I know what key value pairs are available for deployment manager?

For example when I try to figure out what properties I can put into deployment manager for creating a bigquery table, I had to reference the REST API docs as the best place to find parameters and required fields.

Is there a good place from within gcloud command or online docs that are specific to deployment manager yamls? I would like to be able to reference required fields and optional fields for creating GCP resources. Currently it's very difficult to figure out.

Upvotes: 0

Views: 257

Answers (2)

Organic Platypus
Organic Platypus

Reputation: 71

If anything you need is not described in the documentation/exemplary schemas there is a brutal walk around.

You can make an api call with developer console open (F12) and have a look on network activity where your call will be described with all used and available properties.

It will not provide any addtional information about implementation besides parameter's name itself, so you will have to follow rules covering alike parameter.

Upvotes: 0

Silverdev
Silverdev

Reputation: 496

From the documentation at: https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types

You can get a list of the supported resource types by running: gcloud deployment-manager types list

That said the yaml reference from documentation on the that page looks pretty complete.

Edit: Refer to this github link for a list of deployment manager examples.

Upvotes: 1

Related Questions