1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. SourceContextTemplate

SourceContextTemplate

    Template-based source context for obtaining source code from a template URL.

    Properties

    • sourceUrl string optional

      The URL of the template source. Supports two URL schemes:

      Registry-backed templates use the registry:// scheme with the format: registry://templates/source/publisher/name[@version]

      • source: The template source identifier (e.g., the registry source name)
      • publisher: The organization or user that published the template
      • name: The template name
      • version: Optional semver version (e.g., 1.0.0). If omitted, defaults to the latest version

      Example: registry://templates/pulumi/acme-corp/aws-vpc@2.1.0

      VCS-backed templates use standard VCS URLs (GitHub, GitLab, Azure DevOps, etc.): https://github.com/org/repo

    • gitAuth GitAuthConfig optional
      GitAuth allows configuring git authentication options The only authentication option is personal access token as of now.
    • accessToken SecretValue optional
      Personal access token for git authentication
    • sshAuth SSHAuth optional
      SSH private key authentication configuration
    • basicAuth BasicAuth optional
      Basic auth username and password configuration