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
new SourceCodeToken(name: string, args: SourceCodeTokenArgs, opts?: CustomResourceOptions);def SourceCodeToken(resource_name, opts=None, token=None, token_secret=None, type=None, __props__=None);func NewSourceCodeToken(ctx *Context, name string, args SourceCodeTokenArgs, opts ...ResourceOption) (*SourceCodeToken, error)public SourceCodeToken(string name, SourceCodeTokenArgs args, CustomResourceOptions? opts = null)- 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:
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceCodeToken resource produces the following output properties:
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): SourceCodeTokenstatic 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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.