SourceCodeToken

Manages an App Service source control token.

NOTE: Source Control Tokens are configured at the subscription level, not on each App Service - as such this can only be configured Subscription-wide

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Azure.AppService.SourceCodeToken("example", new Azure.AppService.SourceCodeTokenArgs
        {
            Token = "7e57735e77e577e57",
            Type = "GitHub",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
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",
});

Create a SourceCodeToken Resource

def SourceCodeToken(resource_name, opts=None, token=None, token_secret=None, type=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

SourceCodeToken Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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 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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, token=None, token_secret=None, type=None, __props__=None);
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)
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.

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 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.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.