Method: projects.locations.templates.import

Import the template to an existing integration. This api would keep track of usageCount and lastUsedTime. PERMISSION_DENIED would be thrown if template is not accessible by client.

HTTP request

POST https://integrations.googleapis.com/v1/{name=projects/*/locations/*/templates/*}:import

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name that is associated with the Template.

Request body

The request body contains data with the following structure:

JSON representation
{
  "integration": string,
  "subIntegrations": {
    string: {
      object (IntegrationDetails)
    },
    ...
  }
}
Fields
integration

string

Required. Resource name of the integration where template needs to be imported/inserted.

subIntegrations

map (key: string, value: object (IntegrationDetails))

Optional. Sub Integration which would be created via templates.

Response body

Response for import template

If successful, the response body contains data with the following structure:

JSON representation
{
  "integrationVersion": {
    object (IntegrationVersion)
  },
  "subIntegrationVersions": [
    {
      object (IntegrationVersion)
    }
  ]
}
Fields
integrationVersion

object (IntegrationVersion)

IntegrationVersion after the import.

subIntegrationVersions[]

object (IntegrationVersion)

Sub integration versions which are imported.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • integrations.templates.use

For more information, see the IAM documentation.