1. Packages
  2. Packages
  3. Snowflake Provider
  4. API Docs
  5. ApiIntegrationGitRepositoryOauth2
Viewing docs for Snowflake v2.18.0
published on Wednesday, Jul 8, 2026 by Pulumi
snowflake logo
Viewing docs for Snowflake v2.18.0
published on Wednesday, Jul 8, 2026 by Pulumi

    Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to previewFeaturesEnabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

    Resource used to manage API integration Git Repository OAuth2 objects. For more information, check api integration documentation.

    Example Usage

    Note Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    // basic resource
    const basic = new snowflake.ApiIntegrationGitRepositoryOauth2("basic", {
        name: "git_repository_oauth2_integration",
        oauthAuthorizationEndpoint: "https://gitlab.com/oauth/authorize",
        oauthTokenEndpoint: "https://gitlab.com/oauth/token",
        oauthClientId: "my-client-id",
        oauthClientSecret: "my-client-secret",
        apiAllowedPrefixes: ["https://gitlab.com/my-org/"],
        enabled: true,
    });
    // complete resource
    const complete = new snowflake.ApiIntegrationGitRepositoryOauth2("complete", {
        name: "git_repository_oauth2_integration_complete",
        oauthAuthorizationEndpoint: "https://gitlab.com/oauth/authorize",
        oauthTokenEndpoint: "https://gitlab.com/oauth/token",
        oauthClientId: "my-client-id",
        oauthClientSecret: "my-client-secret",
        oauthAccessTokenValidity: 3600,
        oauthRefreshTokenValidity: 86400,
        oauthAllowedScopes: ["read_repository"],
        oauthUsername: "my-git-user",
        apiAllowedPrefixes: ["https://gitlab.com/my-org/"],
        apiBlockedPrefixes: ["https://gitlab.com/my-org/private-repo/"],
        enabled: true,
        comment: "Example Git Repository OAuth2 integration",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    # basic resource
    basic = snowflake.ApiIntegrationGitRepositoryOauth2("basic",
        name="git_repository_oauth2_integration",
        oauth_authorization_endpoint="https://gitlab.com/oauth/authorize",
        oauth_token_endpoint="https://gitlab.com/oauth/token",
        oauth_client_id="my-client-id",
        oauth_client_secret="my-client-secret",
        api_allowed_prefixes=["https://gitlab.com/my-org/"],
        enabled=True)
    # complete resource
    complete = snowflake.ApiIntegrationGitRepositoryOauth2("complete",
        name="git_repository_oauth2_integration_complete",
        oauth_authorization_endpoint="https://gitlab.com/oauth/authorize",
        oauth_token_endpoint="https://gitlab.com/oauth/token",
        oauth_client_id="my-client-id",
        oauth_client_secret="my-client-secret",
        oauth_access_token_validity=3600,
        oauth_refresh_token_validity=86400,
        oauth_allowed_scopes=["read_repository"],
        oauth_username="my-git-user",
        api_allowed_prefixes=["https://gitlab.com/my-org/"],
        api_blocked_prefixes=["https://gitlab.com/my-org/private-repo/"],
        enabled=True,
        comment="Example Git Repository OAuth2 integration")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-snowflake/sdk/v2/go/snowflake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// basic resource
    		_, err := snowflake.NewApiIntegrationGitRepositoryOauth2(ctx, "basic", &snowflake.ApiIntegrationGitRepositoryOauth2Args{
    			Name:                       pulumi.String("git_repository_oauth2_integration"),
    			OauthAuthorizationEndpoint: pulumi.String("https://gitlab.com/oauth/authorize"),
    			OauthTokenEndpoint:         pulumi.String("https://gitlab.com/oauth/token"),
    			OauthClientId:              pulumi.String("my-client-id"),
    			OauthClientSecret:          pulumi.String("my-client-secret"),
    			ApiAllowedPrefixes: pulumi.StringArray{
    				pulumi.String("https://gitlab.com/my-org/"),
    			},
    			Enabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		// complete resource
    		_, err = snowflake.NewApiIntegrationGitRepositoryOauth2(ctx, "complete", &snowflake.ApiIntegrationGitRepositoryOauth2Args{
    			Name:                       pulumi.String("git_repository_oauth2_integration_complete"),
    			OauthAuthorizationEndpoint: pulumi.String("https://gitlab.com/oauth/authorize"),
    			OauthTokenEndpoint:         pulumi.String("https://gitlab.com/oauth/token"),
    			OauthClientId:              pulumi.String("my-client-id"),
    			OauthClientSecret:          pulumi.String("my-client-secret"),
    			OauthAccessTokenValidity:   pulumi.Int(3600),
    			OauthRefreshTokenValidity:  pulumi.Int(86400),
    			OauthAllowedScopes: pulumi.StringArray{
    				pulumi.String("read_repository"),
    			},
    			OauthUsername: pulumi.String("my-git-user"),
    			ApiAllowedPrefixes: pulumi.StringArray{
    				pulumi.String("https://gitlab.com/my-org/"),
    			},
    			ApiBlockedPrefixes: pulumi.StringArray{
    				pulumi.String("https://gitlab.com/my-org/private-repo/"),
    			},
    			Enabled: pulumi.Bool(true),
    			Comment: pulumi.String("Example Git Repository OAuth2 integration"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        // basic resource
        var basic = new Snowflake.ApiIntegrationGitRepositoryOauth2("basic", new()
        {
            Name = "git_repository_oauth2_integration",
            OauthAuthorizationEndpoint = "https://gitlab.com/oauth/authorize",
            OauthTokenEndpoint = "https://gitlab.com/oauth/token",
            OauthClientId = "my-client-id",
            OauthClientSecret = "my-client-secret",
            ApiAllowedPrefixes = new[]
            {
                "https://gitlab.com/my-org/",
            },
            Enabled = true,
        });
    
        // complete resource
        var complete = new Snowflake.ApiIntegrationGitRepositoryOauth2("complete", new()
        {
            Name = "git_repository_oauth2_integration_complete",
            OauthAuthorizationEndpoint = "https://gitlab.com/oauth/authorize",
            OauthTokenEndpoint = "https://gitlab.com/oauth/token",
            OauthClientId = "my-client-id",
            OauthClientSecret = "my-client-secret",
            OauthAccessTokenValidity = 3600,
            OauthRefreshTokenValidity = 86400,
            OauthAllowedScopes = new[]
            {
                "read_repository",
            },
            OauthUsername = "my-git-user",
            ApiAllowedPrefixes = new[]
            {
                "https://gitlab.com/my-org/",
            },
            ApiBlockedPrefixes = new[]
            {
                "https://gitlab.com/my-org/private-repo/",
            },
            Enabled = true,
            Comment = "Example Git Repository OAuth2 integration",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.ApiIntegrationGitRepositoryOauth2;
    import com.pulumi.snowflake.ApiIntegrationGitRepositoryOauth2Args;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // basic resource
            var basic = new ApiIntegrationGitRepositoryOauth2("basic", ApiIntegrationGitRepositoryOauth2Args.builder()
                .name("git_repository_oauth2_integration")
                .oauthAuthorizationEndpoint("https://gitlab.com/oauth/authorize")
                .oauthTokenEndpoint("https://gitlab.com/oauth/token")
                .oauthClientId("my-client-id")
                .oauthClientSecret("my-client-secret")
                .apiAllowedPrefixes("https://gitlab.com/my-org/")
                .enabled(true)
                .build());
    
            // complete resource
            var complete = new ApiIntegrationGitRepositoryOauth2("complete", ApiIntegrationGitRepositoryOauth2Args.builder()
                .name("git_repository_oauth2_integration_complete")
                .oauthAuthorizationEndpoint("https://gitlab.com/oauth/authorize")
                .oauthTokenEndpoint("https://gitlab.com/oauth/token")
                .oauthClientId("my-client-id")
                .oauthClientSecret("my-client-secret")
                .oauthAccessTokenValidity(3600)
                .oauthRefreshTokenValidity(86400)
                .oauthAllowedScopes("read_repository")
                .oauthUsername("my-git-user")
                .apiAllowedPrefixes("https://gitlab.com/my-org/")
                .apiBlockedPrefixes("https://gitlab.com/my-org/private-repo/")
                .enabled(true)
                .comment("Example Git Repository OAuth2 integration")
                .build());
    
        }
    }
    
    resources:
      # basic resource
      basic:
        type: snowflake:ApiIntegrationGitRepositoryOauth2
        properties:
          name: git_repository_oauth2_integration
          oauthAuthorizationEndpoint: https://gitlab.com/oauth/authorize
          oauthTokenEndpoint: https://gitlab.com/oauth/token
          oauthClientId: my-client-id
          oauthClientSecret: my-client-secret
          apiAllowedPrefixes:
            - https://gitlab.com/my-org/
          enabled: true
      # complete resource
      complete:
        type: snowflake:ApiIntegrationGitRepositoryOauth2
        properties:
          name: git_repository_oauth2_integration_complete
          oauthAuthorizationEndpoint: https://gitlab.com/oauth/authorize
          oauthTokenEndpoint: https://gitlab.com/oauth/token
          oauthClientId: my-client-id
          oauthClientSecret: my-client-secret
          oauthAccessTokenValidity: 3600
          oauthRefreshTokenValidity: 86400
          oauthAllowedScopes:
            - read_repository
          oauthUsername: my-git-user
          apiAllowedPrefixes:
            - https://gitlab.com/my-org/
          apiBlockedPrefixes:
            - https://gitlab.com/my-org/private-repo/
          enabled: true
          comment: Example Git Repository OAuth2 integration
    
    pulumi {
      required_providers {
        snowflake = {
          source = "pulumi/snowflake"
        }
      }
    }
    
    # basic resource
    resource "snowflake_apiintegrationgitrepositoryoauth2" "basic" {
      name                         = "git_repository_oauth2_integration"
      oauth_authorization_endpoint = "https://gitlab.com/oauth/authorize"
      oauth_token_endpoint         = "https://gitlab.com/oauth/token"
      oauth_client_id              = "my-client-id"
      oauth_client_secret          = "my-client-secret"
      api_allowed_prefixes         = ["https://gitlab.com/my-org/"]
      enabled                      = true
    }
    # complete resource
    resource "snowflake_apiintegrationgitrepositoryoauth2" "complete" {
      name                         = "git_repository_oauth2_integration_complete"
      oauth_authorization_endpoint = "https://gitlab.com/oauth/authorize"
      oauth_token_endpoint         = "https://gitlab.com/oauth/token"
      oauth_client_id              = "my-client-id"
      oauth_client_secret          = "my-client-secret"
      oauth_access_token_validity  = 3600
      oauth_refresh_token_validity = 86400
      oauth_allowed_scopes         = ["read_repository"]
      oauth_username               = "my-git-user"
      api_allowed_prefixes         = ["https://gitlab.com/my-org/"]
      api_blocked_prefixes         = ["https://gitlab.com/my-org/private-repo/"]
      enabled                      = true
      comment                      = "Example Git Repository OAuth2 integration"
    }
    

    Note If a field has a default value, it is shown next to the type in the schema.

    Create ApiIntegrationGitRepositoryOauth2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ApiIntegrationGitRepositoryOauth2(name: string, args: ApiIntegrationGitRepositoryOauth2Args, opts?: CustomResourceOptions);
    @overload
    def ApiIntegrationGitRepositoryOauth2(resource_name: str,
                                          args: ApiIntegrationGitRepositoryOauth2Args,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApiIntegrationGitRepositoryOauth2(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          oauth_client_secret: Optional[str] = None,
                                          enabled: Optional[bool] = None,
                                          oauth_authorization_endpoint: Optional[str] = None,
                                          oauth_client_id: Optional[str] = None,
                                          api_allowed_prefixes: Optional[Sequence[str]] = None,
                                          oauth_token_endpoint: Optional[str] = None,
                                          api_blocked_prefixes: Optional[Sequence[str]] = None,
                                          comment: Optional[str] = None,
                                          name: Optional[str] = None,
                                          oauth_access_token_validity: Optional[int] = None,
                                          oauth_allowed_scopes: Optional[Sequence[str]] = None,
                                          oauth_refresh_token_validity: Optional[int] = None,
                                          oauth_username: Optional[str] = None)
    func NewApiIntegrationGitRepositoryOauth2(ctx *Context, name string, args ApiIntegrationGitRepositoryOauth2Args, opts ...ResourceOption) (*ApiIntegrationGitRepositoryOauth2, error)
    public ApiIntegrationGitRepositoryOauth2(string name, ApiIntegrationGitRepositoryOauth2Args args, CustomResourceOptions? opts = null)
    public ApiIntegrationGitRepositoryOauth2(String name, ApiIntegrationGitRepositoryOauth2Args args)
    public ApiIntegrationGitRepositoryOauth2(String name, ApiIntegrationGitRepositoryOauth2Args args, CustomResourceOptions options)
    
    type: snowflake:ApiIntegrationGitRepositoryOauth2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "snowflake_api_integration_git_repository_oauth2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ApiIntegrationGitRepositoryOauth2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApiIntegrationGitRepositoryOauth2Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApiIntegrationGitRepositoryOauth2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApiIntegrationGitRepositoryOauth2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApiIntegrationGitRepositoryOauth2Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var apiIntegrationGitRepositoryOauth2Resource = new Snowflake.ApiIntegrationGitRepositoryOauth2("apiIntegrationGitRepositoryOauth2Resource", new()
    {
        OauthClientSecret = "string",
        Enabled = false,
        OauthAuthorizationEndpoint = "string",
        OauthClientId = "string",
        ApiAllowedPrefixes = new[]
        {
            "string",
        },
        OauthTokenEndpoint = "string",
        ApiBlockedPrefixes = new[]
        {
            "string",
        },
        Comment = "string",
        Name = "string",
        OauthAccessTokenValidity = 0,
        OauthAllowedScopes = new[]
        {
            "string",
        },
        OauthRefreshTokenValidity = 0,
        OauthUsername = "string",
    });
    
    example, err := snowflake.NewApiIntegrationGitRepositoryOauth2(ctx, "apiIntegrationGitRepositoryOauth2Resource", &snowflake.ApiIntegrationGitRepositoryOauth2Args{
    	OauthClientSecret:          pulumi.String("string"),
    	Enabled:                    pulumi.Bool(false),
    	OauthAuthorizationEndpoint: pulumi.String("string"),
    	OauthClientId:              pulumi.String("string"),
    	ApiAllowedPrefixes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OauthTokenEndpoint: pulumi.String("string"),
    	ApiBlockedPrefixes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Comment:                  pulumi.String("string"),
    	Name:                     pulumi.String("string"),
    	OauthAccessTokenValidity: pulumi.Int(0),
    	OauthAllowedScopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OauthRefreshTokenValidity: pulumi.Int(0),
    	OauthUsername:             pulumi.String("string"),
    })
    
    resource "snowflake_api_integration_git_repository_oauth2" "apiIntegrationGitRepositoryOauth2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      oauth_client_secret          = "string"
      enabled                      = false
      oauth_authorization_endpoint = "string"
      oauth_client_id              = "string"
      api_allowed_prefixes         = ["string"]
      oauth_token_endpoint         = "string"
      api_blocked_prefixes         = ["string"]
      comment                      = "string"
      name                         = "string"
      oauth_access_token_validity  = 0
      oauth_allowed_scopes         = ["string"]
      oauth_refresh_token_validity = 0
      oauth_username               = "string"
    }
    
    var apiIntegrationGitRepositoryOauth2Resource = new ApiIntegrationGitRepositoryOauth2("apiIntegrationGitRepositoryOauth2Resource", ApiIntegrationGitRepositoryOauth2Args.builder()
        .oauthClientSecret("string")
        .enabled(false)
        .oauthAuthorizationEndpoint("string")
        .oauthClientId("string")
        .apiAllowedPrefixes("string")
        .oauthTokenEndpoint("string")
        .apiBlockedPrefixes("string")
        .comment("string")
        .name("string")
        .oauthAccessTokenValidity(0)
        .oauthAllowedScopes("string")
        .oauthRefreshTokenValidity(0)
        .oauthUsername("string")
        .build());
    
    api_integration_git_repository_oauth2_resource = snowflake.ApiIntegrationGitRepositoryOauth2("apiIntegrationGitRepositoryOauth2Resource",
        oauth_client_secret="string",
        enabled=False,
        oauth_authorization_endpoint="string",
        oauth_client_id="string",
        api_allowed_prefixes=["string"],
        oauth_token_endpoint="string",
        api_blocked_prefixes=["string"],
        comment="string",
        name="string",
        oauth_access_token_validity=0,
        oauth_allowed_scopes=["string"],
        oauth_refresh_token_validity=0,
        oauth_username="string")
    
    const apiIntegrationGitRepositoryOauth2Resource = new snowflake.ApiIntegrationGitRepositoryOauth2("apiIntegrationGitRepositoryOauth2Resource", {
        oauthClientSecret: "string",
        enabled: false,
        oauthAuthorizationEndpoint: "string",
        oauthClientId: "string",
        apiAllowedPrefixes: ["string"],
        oauthTokenEndpoint: "string",
        apiBlockedPrefixes: ["string"],
        comment: "string",
        name: "string",
        oauthAccessTokenValidity: 0,
        oauthAllowedScopes: ["string"],
        oauthRefreshTokenValidity: 0,
        oauthUsername: "string",
    });
    
    type: snowflake:ApiIntegrationGitRepositoryOauth2
    properties:
        apiAllowedPrefixes:
            - string
        apiBlockedPrefixes:
            - string
        comment: string
        enabled: false
        name: string
        oauthAccessTokenValidity: 0
        oauthAllowedScopes:
            - string
        oauthAuthorizationEndpoint: string
        oauthClientId: string
        oauthClientSecret: string
        oauthRefreshTokenValidity: 0
        oauthTokenEndpoint: string
        oauthUsername: string
    

    ApiIntegrationGitRepositoryOauth2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ApiIntegrationGitRepositoryOauth2 resource accepts the following input properties:

    ApiAllowedPrefixes List<string>
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    Enabled bool
    Specifies whether this API integration is enabled or disabled.
    OauthAuthorizationEndpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    OauthClientId string
    The client ID for the OAuth 2.0 application.
    OauthClientSecret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    OauthTokenEndpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    ApiBlockedPrefixes List<string>
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    Comment string
    Specifies a comment for the integration.
    Name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    OauthAccessTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    OauthAllowedScopes List<string>
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    OauthRefreshTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    OauthUsername string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    ApiAllowedPrefixes []string
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    Enabled bool
    Specifies whether this API integration is enabled or disabled.
    OauthAuthorizationEndpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    OauthClientId string
    The client ID for the OAuth 2.0 application.
    OauthClientSecret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    OauthTokenEndpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    ApiBlockedPrefixes []string
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    Comment string
    Specifies a comment for the integration.
    Name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    OauthAccessTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    OauthAllowedScopes []string
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    OauthRefreshTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    OauthUsername string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    api_allowed_prefixes list(string)
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    enabled bool
    Specifies whether this API integration is enabled or disabled.
    oauth_authorization_endpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauth_client_id string
    The client ID for the OAuth 2.0 application.
    oauth_client_secret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauth_token_endpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    api_blocked_prefixes list(string)
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment string
    Specifies a comment for the integration.
    name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauth_access_token_validity number
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauth_allowed_scopes list(string)
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauth_refresh_token_validity number
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauth_username string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    apiAllowedPrefixes List<String>
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    enabled Boolean
    Specifies whether this API integration is enabled or disabled.
    oauthAuthorizationEndpoint String
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauthClientId String
    The client ID for the OAuth 2.0 application.
    oauthClientSecret String
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauthTokenEndpoint String
    The OAuth 2.0 token endpoint for the Git repository.
    apiBlockedPrefixes List<String>
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment String
    Specifies a comment for the integration.
    name String
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauthAccessTokenValidity Integer
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauthAllowedScopes List<String>
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauthRefreshTokenValidity Integer
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauthUsername String
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    apiAllowedPrefixes string[]
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    enabled boolean
    Specifies whether this API integration is enabled or disabled.
    oauthAuthorizationEndpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauthClientId string
    The client ID for the OAuth 2.0 application.
    oauthClientSecret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauthTokenEndpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    apiBlockedPrefixes string[]
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment string
    Specifies a comment for the integration.
    name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauthAccessTokenValidity number
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauthAllowedScopes string[]
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauthRefreshTokenValidity number
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauthUsername string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    api_allowed_prefixes Sequence[str]
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    enabled bool
    Specifies whether this API integration is enabled or disabled.
    oauth_authorization_endpoint str
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauth_client_id str
    The client ID for the OAuth 2.0 application.
    oauth_client_secret str
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauth_token_endpoint str
    The OAuth 2.0 token endpoint for the Git repository.
    api_blocked_prefixes Sequence[str]
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment str
    Specifies a comment for the integration.
    name str
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauth_access_token_validity int
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauth_allowed_scopes Sequence[str]
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauth_refresh_token_validity int
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauth_username str
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    apiAllowedPrefixes List<String>
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    enabled Boolean
    Specifies whether this API integration is enabled or disabled.
    oauthAuthorizationEndpoint String
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauthClientId String
    The client ID for the OAuth 2.0 application.
    oauthClientSecret String
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauthTokenEndpoint String
    The OAuth 2.0 token endpoint for the Git repository.
    apiBlockedPrefixes List<String>
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment String
    Specifies a comment for the integration.
    name String
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauthAccessTokenValidity Number
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauthAllowedScopes List<String>
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauthRefreshTokenValidity Number
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauthUsername String
    Specifies the username to authenticate with the Git repository using OAuth 2.0.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApiIntegrationGitRepositoryOauth2 resource produces the following output properties:

    DescribeOutputs List<ApiIntegrationGitRepositoryOauth2DescribeOutput>
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShowOutputs List<ApiIntegrationGitRepositoryOauth2ShowOutput>
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    DescribeOutputs []ApiIntegrationGitRepositoryOauth2DescribeOutput
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShowOutputs []ApiIntegrationGitRepositoryOauth2ShowOutput
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    describe_outputs list(object)
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    fully_qualified_name string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    show_outputs list(object)
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    describeOutputs List<ApiIntegrationGitRepositoryOauth2DescribeOutput>
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    showOutputs List<ApiIntegrationGitRepositoryOauth2ShowOutput>
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    describeOutputs ApiIntegrationGitRepositoryOauth2DescribeOutput[]
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    showOutputs ApiIntegrationGitRepositoryOauth2ShowOutput[]
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    describe_outputs Sequence[ApiIntegrationGitRepositoryOauth2DescribeOutput]
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    id str
    The provider-assigned unique ID for this managed resource.
    show_outputs Sequence[ApiIntegrationGitRepositoryOauth2ShowOutput]
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    showOutputs List<Property Map>
    Outputs the result of SHOW API INTEGRATIONS for the given integration.

    Look up Existing ApiIntegrationGitRepositoryOauth2 Resource

    Get an existing ApiIntegrationGitRepositoryOauth2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApiIntegrationGitRepositoryOauth2State, opts?: CustomResourceOptions): ApiIntegrationGitRepositoryOauth2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_allowed_prefixes: Optional[Sequence[str]] = None,
            api_blocked_prefixes: Optional[Sequence[str]] = None,
            comment: Optional[str] = None,
            describe_outputs: Optional[Sequence[ApiIntegrationGitRepositoryOauth2DescribeOutputArgs]] = None,
            enabled: Optional[bool] = None,
            fully_qualified_name: Optional[str] = None,
            name: Optional[str] = None,
            oauth_access_token_validity: Optional[int] = None,
            oauth_allowed_scopes: Optional[Sequence[str]] = None,
            oauth_authorization_endpoint: Optional[str] = None,
            oauth_client_id: Optional[str] = None,
            oauth_client_secret: Optional[str] = None,
            oauth_refresh_token_validity: Optional[int] = None,
            oauth_token_endpoint: Optional[str] = None,
            oauth_username: Optional[str] = None,
            show_outputs: Optional[Sequence[ApiIntegrationGitRepositoryOauth2ShowOutputArgs]] = None) -> ApiIntegrationGitRepositoryOauth2
    func GetApiIntegrationGitRepositoryOauth2(ctx *Context, name string, id IDInput, state *ApiIntegrationGitRepositoryOauth2State, opts ...ResourceOption) (*ApiIntegrationGitRepositoryOauth2, error)
    public static ApiIntegrationGitRepositoryOauth2 Get(string name, Input<string> id, ApiIntegrationGitRepositoryOauth2State? state, CustomResourceOptions? opts = null)
    public static ApiIntegrationGitRepositoryOauth2 get(String name, Output<String> id, ApiIntegrationGitRepositoryOauth2State state, CustomResourceOptions options)
    resources:  _:    type: snowflake:ApiIntegrationGitRepositoryOauth2    get:      id: ${id}
    import {
      to = snowflake_api_integration_git_repository_oauth2.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApiAllowedPrefixes List<string>
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    ApiBlockedPrefixes List<string>
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    Comment string
    Specifies a comment for the integration.
    DescribeOutputs List<ApiIntegrationGitRepositoryOauth2DescribeOutput>
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    Enabled bool
    Specifies whether this API integration is enabled or disabled.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    OauthAccessTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    OauthAllowedScopes List<string>
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    OauthAuthorizationEndpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    OauthClientId string
    The client ID for the OAuth 2.0 application.
    OauthClientSecret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    OauthRefreshTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    OauthTokenEndpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    OauthUsername string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    ShowOutputs List<ApiIntegrationGitRepositoryOauth2ShowOutput>
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    ApiAllowedPrefixes []string
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    ApiBlockedPrefixes []string
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    Comment string
    Specifies a comment for the integration.
    DescribeOutputs []ApiIntegrationGitRepositoryOauth2DescribeOutputArgs
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    Enabled bool
    Specifies whether this API integration is enabled or disabled.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    OauthAccessTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    OauthAllowedScopes []string
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    OauthAuthorizationEndpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    OauthClientId string
    The client ID for the OAuth 2.0 application.
    OauthClientSecret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    OauthRefreshTokenValidity int
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    OauthTokenEndpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    OauthUsername string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    ShowOutputs []ApiIntegrationGitRepositoryOauth2ShowOutputArgs
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    api_allowed_prefixes list(string)
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    api_blocked_prefixes list(string)
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment string
    Specifies a comment for the integration.
    describe_outputs list(object)
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    enabled bool
    Specifies whether this API integration is enabled or disabled.
    fully_qualified_name string
    Fully qualified name of the resource. For more information, see object name resolution.
    name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauth_access_token_validity number
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauth_allowed_scopes list(string)
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauth_authorization_endpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauth_client_id string
    The client ID for the OAuth 2.0 application.
    oauth_client_secret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauth_refresh_token_validity number
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauth_token_endpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    oauth_username string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    show_outputs list(object)
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    apiAllowedPrefixes List<String>
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    apiBlockedPrefixes List<String>
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment String
    Specifies a comment for the integration.
    describeOutputs List<ApiIntegrationGitRepositoryOauth2DescribeOutput>
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    enabled Boolean
    Specifies whether this API integration is enabled or disabled.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    name String
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauthAccessTokenValidity Integer
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauthAllowedScopes List<String>
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauthAuthorizationEndpoint String
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauthClientId String
    The client ID for the OAuth 2.0 application.
    oauthClientSecret String
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauthRefreshTokenValidity Integer
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauthTokenEndpoint String
    The OAuth 2.0 token endpoint for the Git repository.
    oauthUsername String
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    showOutputs List<ApiIntegrationGitRepositoryOauth2ShowOutput>
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    apiAllowedPrefixes string[]
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    apiBlockedPrefixes string[]
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment string
    Specifies a comment for the integration.
    describeOutputs ApiIntegrationGitRepositoryOauth2DescribeOutput[]
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    enabled boolean
    Specifies whether this API integration is enabled or disabled.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    name string
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauthAccessTokenValidity number
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauthAllowedScopes string[]
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauthAuthorizationEndpoint string
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauthClientId string
    The client ID for the OAuth 2.0 application.
    oauthClientSecret string
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauthRefreshTokenValidity number
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauthTokenEndpoint string
    The OAuth 2.0 token endpoint for the Git repository.
    oauthUsername string
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    showOutputs ApiIntegrationGitRepositoryOauth2ShowOutput[]
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    api_allowed_prefixes Sequence[str]
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    api_blocked_prefixes Sequence[str]
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment str
    Specifies a comment for the integration.
    describe_outputs Sequence[ApiIntegrationGitRepositoryOauth2DescribeOutputArgs]
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    enabled bool
    Specifies whether this API integration is enabled or disabled.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    name str
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauth_access_token_validity int
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauth_allowed_scopes Sequence[str]
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauth_authorization_endpoint str
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauth_client_id str
    The client ID for the OAuth 2.0 application.
    oauth_client_secret str
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauth_refresh_token_validity int
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauth_token_endpoint str
    The OAuth 2.0 token endpoint for the Git repository.
    oauth_username str
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    show_outputs Sequence[ApiIntegrationGitRepositoryOauth2ShowOutputArgs]
    Outputs the result of SHOW API INTEGRATIONS for the given integration.
    apiAllowedPrefixes List<String>
    Explicitly limits external functions that use the integration to reference one or more HTTPS proxy service and remote service endpoints and resources.
    apiBlockedPrefixes List<String>
    Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
    comment String
    Specifies a comment for the integration.
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE API INTEGRATION for the given integration.
    enabled Boolean
    Specifies whether this API integration is enabled or disabled.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    name String
    Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    oauthAccessTokenValidity Number
    Specifies the validity period (in seconds) for the OAuth 2.0 access token.
    oauthAllowedScopes List<String>
    Specifies a list of scopes to use when making a request from the OAuth by a role with USAGE on the integration. Valid values are (case-insensitive): readApi | readRepository | writeRepository.
    oauthAuthorizationEndpoint String
    The OAuth 2.0 authorization endpoint for the Git repository.
    oauthClientId String
    The client ID for the OAuth 2.0 application.
    oauthClientSecret String
    The client secret for the OAuth 2.0 application. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
    oauthRefreshTokenValidity Number
    Specifies the validity period (in seconds) for the OAuth 2.0 refresh token.
    oauthTokenEndpoint String
    The OAuth 2.0 token endpoint for the Git repository.
    oauthUsername String
    Specifies the username to authenticate with the Git repository using OAuth 2.0.
    showOutputs List<Property Map>
    Outputs the result of SHOW API INTEGRATIONS for the given integration.

    Supporting Types

    ApiIntegrationGitRepositoryOauth2DescribeOutput, ApiIntegrationGitRepositoryOauth2DescribeOutputArgs

    ApiIntegrationGitRepositoryOauth2ShowOutput, ApiIntegrationGitRepositoryOauth2ShowOutputArgs

    ApiType string
    Category string
    Comment string
    CreatedOn string
    Enabled bool
    Name string
    ApiType string
    Category string
    Comment string
    CreatedOn string
    Enabled bool
    Name string
    api_type string
    category string
    comment string
    created_on string
    enabled bool
    name string
    apiType String
    category String
    comment String
    createdOn String
    enabled Boolean
    name String
    apiType string
    category string
    comment string
    createdOn string
    enabled boolean
    name string
    apiType String
    category String
    comment String
    createdOn String
    enabled Boolean
    name String

    Import

    $ pulumi import snowflake:index/apiIntegrationGitRepositoryOauth2:ApiIntegrationGitRepositoryOauth2 example '"<name>"'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Viewing docs for Snowflake v2.18.0
    published on Wednesday, Jul 8, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial