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",
});
}
}
Inherited Members
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class SourceCodeToken : CustomResource
Constructors
View SourceSourceCodeToken(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 SourceToken
The OAuth access token.
Declaration
public Output<string> Token { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TokenSecret
The OAuth access token secret.
Declaration
public Output<string> TokenSecret { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |