Insights
InsightsAccounts

GenerateImportCode

Generates Pulumi code in the specified language to import discovered resources into a Pulumi stack.

post/api/preview/insights/{orgName}/import/code/generate

Request

  • Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pulumi.com/api/preview/insights/{orgName}/import/code/generate
  • Auth: none declared

Path parameters

orgNamestring required

The organization name

Request body

languagestring required

The programming language for the generated import code

urnsstring[] required

The URNs of the resources to generate import code for

Response

successful operation

codestring required

The generated import code

Changes

No recorded changes to this operation across all 1 revision of this API.