Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SourceCodeToken
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class SourceCodeToken : CustomResource

Constructors

View Source

SourceCodeToken(String, SourceCodeTokenArgs, CustomResourceOptions)

Create a SourceCodeToken resource with the given unique name, arguments, and options.

Declaration
public SourceCodeToken(string name, SourceCodeTokenArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SourceCodeTokenArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Token

The OAuth access token.

Declaration
public Output<string> Token { get; }
Property Value
Type Description
Output<System.String>
View Source

TokenSecret

The OAuth access token secret.

Declaration
public Output<string> TokenSecret { get; }
Property Value
Type Description
Output<System.String>
View Source

Type

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

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, SourceCodeTokenState, CustomResourceOptions)

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

Declaration
public static SourceCodeToken Get(string name, Input<string> id, SourceCodeTokenState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SourceCodeTokenState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SourceCodeToken
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.