GitHub
Manages a GitHub service endpoint within Azure DevOps.
Relevant Links
Create a GitHub Resource
new GitHub(name: string, args: GitHubArgs, opts?: CustomResourceOptions);def GitHub(resource_name, opts=None, auth_oauth=None, auth_personal=None, authorization=None, description=None, project_id=None, service_endpoint_name=None, __props__=None);func NewGitHub(ctx *Context, name string, args GitHubArgs, opts ...ResourceOption) (*GitHub, error)public GitHub(string name, GitHubArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GitHubArgs
- 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 GitHubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitHubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
GitHub Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GitHub resource accepts the following input properties:
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Auth
Oauth Pulumi.Azure Dev Ops. Service Endpoint. Inputs. Git Hub Auth Oauth Args An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- Auth
Personal Pulumi.Azure Dev Ops. Service Endpoint. Inputs. Git Hub Auth Personal Args An
auth_personalblock as documented below. Allows connecting using a personal access token.- Dictionary<string, string>
- Description string
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Auth
Oauth GitHub Auth Oauth An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- Auth
Personal GitHub Auth Personal An
auth_personalblock as documented below. Allows connecting using a personal access token.- map[string]string
- Description string
- project
Id string The project ID or project name.
- service
Endpoint stringName The Service Endpoint name.
- auth
Oauth GitHub Auth Oauth An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- auth
Personal GitHub Auth Personal An
auth_personalblock as documented below. Allows connecting using a personal access token.- {[key: string]: string}
- description string
- project_
id str The project ID or project name.
- service_
endpoint_ strname The Service Endpoint name.
- auth_
oauth Dict[GitHub Auth Oauth] An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- auth_
personal Dict[GitHub Auth Personal] An
auth_personalblock as documented below. Allows connecting using a personal access token.- Dict[str, str]
- description str
Outputs
All input properties are implicitly available as output properties. Additionally, the GitHub resource produces the following output properties:
Look up an Existing GitHub Resource
Get an existing GitHub 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?: GitHubState, opts?: CustomResourceOptions): GitHubstatic get(resource_name, id, opts=None, auth_oauth=None, auth_personal=None, authorization=None, description=None, project_id=None, service_endpoint_name=None, __props__=None);func GetGitHub(ctx *Context, name string, id IDInput, state *GitHubState, opts ...ResourceOption) (*GitHub, error)public static GitHub Get(string name, Input<string> id, GitHubState? 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:
- Auth
Oauth Pulumi.Azure Dev Ops. Service Endpoint. Inputs. Git Hub Auth Oauth Args An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- Auth
Personal Pulumi.Azure Dev Ops. Service Endpoint. Inputs. Git Hub Auth Personal Args An
auth_personalblock as documented below. Allows connecting using a personal access token.- Dictionary<string, string>
- Description string
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- Auth
Oauth GitHub Auth Oauth An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- Auth
Personal GitHub Auth Personal An
auth_personalblock as documented below. Allows connecting using a personal access token.- map[string]string
- Description string
- Project
Id string The project ID or project name.
- Service
Endpoint stringName The Service Endpoint name.
- auth
Oauth GitHub Auth Oauth An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- auth
Personal GitHub Auth Personal An
auth_personalblock as documented below. Allows connecting using a personal access token.- {[key: string]: string}
- description string
- project
Id string The project ID or project name.
- service
Endpoint stringName The Service Endpoint name.
- auth_
oauth Dict[GitHub Auth Oauth] An
auth_oauthblock as documented below. Allows connecting using an Oauth token.- auth_
personal Dict[GitHub Auth Personal] An
auth_personalblock as documented below. Allows connecting using a personal access token.- Dict[str, str]
- description str
- project_
id str The project ID or project name.
- service_
endpoint_ strname The Service Endpoint name.
Supporting Types
GitHubAuthOauth
GitHubAuthPersonal
- Personal
Access stringToken The Personal Access Token for Github.
- Personal
Access stringToken Hash
- Personal
Access stringToken The Personal Access Token for Github.
- Personal
Access stringToken Hash
- personal
Access stringToken The Personal Access Token for Github.
- personal
Access stringToken Hash
- personal_
access_ strtoken The Personal Access Token for Github.
- personal
Access strToken Hash
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.