azure logo
Azure Classic v5.38.0, Mar 21 23

azure.appservice.SourceCodeToken

Import

App Service Source Control Token’s can be imported using the type, e.g.

 $ pulumi import azure:appservice/sourceCodeToken:SourceCodeToken example {type}

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.AppService.SourceCodeToken("example", new()
    {
        Token = "7e57735e77e577e57",
        Type = "GitHub",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := appservice.NewSourceCodeToken(ctx, "example", &appservice.SourceCodeTokenArgs{
			Token: pulumi.String("7e57735e77e577e57"),
			Type:  pulumi.String("GitHub"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appservice.SourceCodeToken;
import com.pulumi.azure.appservice.SourceCodeTokenArgs;
import java.util.List;
import java.util.ArrayList;
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) {
        var example = new SourceCodeToken("example", SourceCodeTokenArgs.builder()        
            .token("7e57735e77e577e57")
            .type("GitHub")
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.appservice.SourceCodeToken("example",
    token="7e57735e77e577e57",
    type="GitHub")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.appservice.SourceCodeToken("example", {
    token: "7e57735e77e577e57",
    type: "GitHub",
});
resources:
  example:
    type: azure:appservice:SourceCodeToken
    properties:
      token: 7e57735e77e577e57
      type: GitHub

Create SourceCodeToken Resource

new SourceCodeToken(name: string, args: SourceCodeTokenArgs, opts?: CustomResourceOptions);
@overload
def SourceCodeToken(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    token: Optional[str] = None,
                    token_secret: Optional[str] = None,
                    type: Optional[str] = None)
@overload
def SourceCodeToken(resource_name: str,
                    args: SourceCodeTokenArgs,
                    opts: Optional[ResourceOptions] = None)
func NewSourceCodeToken(ctx *Context, name string, args SourceCodeTokenArgs, opts ...ResourceOption) (*SourceCodeToken, error)
public SourceCodeToken(string name, SourceCodeTokenArgs args, CustomResourceOptions? opts = null)
public SourceCodeToken(String name, SourceCodeTokenArgs args)
public SourceCodeToken(String name, SourceCodeTokenArgs args, CustomResourceOptions options)
type: azure:appservice:SourceCodeToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args SourceCodeTokenArgs
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 SourceCodeTokenArgs
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 SourceCodeTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SourceCodeTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args SourceCodeTokenArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

SourceCodeToken Resource Properties

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

Inputs

The SourceCodeToken resource accepts the following input properties:

Token string

The OAuth access token.

Type string

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

TokenSecret string

The OAuth access token secret.

Token string

The OAuth access token.

Type string

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

TokenSecret string

The OAuth access token secret.

token String

The OAuth access token.

type String

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

tokenSecret String

The OAuth access token secret.

token string

The OAuth access token.

type string

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

tokenSecret string

The OAuth access token secret.

token str

The OAuth access token.

type str

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

token_secret str

The OAuth access token secret.

token String

The OAuth access token.

type String

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

tokenSecret String

The OAuth access token secret.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing SourceCodeToken Resource

Get an existing SourceCodeToken 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?: SourceCodeTokenState, opts?: CustomResourceOptions): SourceCodeToken
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        token: Optional[str] = None,
        token_secret: Optional[str] = None,
        type: Optional[str] = None) -> SourceCodeToken
func GetSourceCodeToken(ctx *Context, name string, id IDInput, state *SourceCodeTokenState, opts ...ResourceOption) (*SourceCodeToken, error)
public static SourceCodeToken Get(string name, Input<string> id, SourceCodeTokenState? state, CustomResourceOptions? opts = null)
public static SourceCodeToken get(String name, Output<String> id, SourceCodeTokenState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
Token string

The OAuth access token.

TokenSecret string

The OAuth access token secret.

Type string

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

Token string

The OAuth access token.

TokenSecret string

The OAuth access token secret.

Type string

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

token String

The OAuth access token.

tokenSecret String

The OAuth access token secret.

type String

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

token string

The OAuth access token.

tokenSecret string

The OAuth access token secret.

type string

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

token str

The OAuth access token.

token_secret str

The OAuth access token secret.

type str

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

token String

The OAuth access token.

tokenSecret String

The OAuth access token secret.

type String

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.