Represents a SourceControl in Azure Security Insights.
Uses Azure REST API version 2025-09-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview.
Other available API versions: 2025-06-01, 2025-07-01-preview, 2025-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native securityinsights [ApiVersion]. See the version guide for details.
Example Usage
Creates or updates a source control.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sourceControl = new AzureNative.SecurityInsights.SourceControl("sourceControl", new()
{
ContentTypes =
{
AzureNative.SecurityInsights.ContentType.AnalyticsRule,
AzureNative.SecurityInsights.ContentType.Workbook,
},
Description = "This is a source control",
DisplayName = "My Source Control",
RepoType = AzureNative.SecurityInsights.RepoType.Github,
Repository = new AzureNative.SecurityInsights.Inputs.RepositoryArgs
{
Branch = "master",
DisplayUrl = "https://github.com/user/repo",
Url = "https://github.com/user/repo",
},
RepositoryAccess = new AzureNative.SecurityInsights.Inputs.RepositoryAccessArgs
{
ClientId = "54b3c2c0-1f48-4a1c-af9f-6399c3240b73",
Code = "939fd7c6caf754f4f41f",
Kind = AzureNative.SecurityInsights.RepositoryAccessKind.OAuth,
State = "state",
},
ResourceGroupName = "myRg",
SourceControlId = "789e0c1f-4a3d-43ad-809c-e713b677b04a",
WorkspaceName = "myWorkspace",
});
});
package main
import (
securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securityinsights.NewSourceControl(ctx, "sourceControl", &securityinsights.SourceControlArgs{
ContentTypes: pulumi.StringArray{
pulumi.String(securityinsights.ContentTypeAnalyticsRule),
pulumi.String(securityinsights.ContentTypeWorkbook),
},
Description: pulumi.String("This is a source control"),
DisplayName: pulumi.String("My Source Control"),
RepoType: pulumi.String(securityinsights.RepoTypeGithub),
Repository: &securityinsights.RepositoryArgs{
Branch: pulumi.String("master"),
DisplayUrl: pulumi.String("https://github.com/user/repo"),
Url: pulumi.String("https://github.com/user/repo"),
},
RepositoryAccess: &securityinsights.RepositoryAccessArgs{
ClientId: pulumi.String("54b3c2c0-1f48-4a1c-af9f-6399c3240b73"),
Code: pulumi.String("939fd7c6caf754f4f41f"),
Kind: pulumi.String(securityinsights.RepositoryAccessKindOAuth),
State: pulumi.String("state"),
},
ResourceGroupName: pulumi.String("myRg"),
SourceControlId: pulumi.String("789e0c1f-4a3d-43ad-809c-e713b677b04a"),
WorkspaceName: pulumi.String("myWorkspace"),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_securityinsights_source_control" "sourceControl" {
lifecycle {
create_before_destroy = true
}
content_types = ["AnalyticsRule", "Workbook"]
description = "This is a source control"
display_name = "My Source Control"
repo_type = "Github"
repository = {
branch = "master"
display_url = "https://github.com/user/repo"
url = "https://github.com/user/repo"
}
repository_access = {
client_id = "54b3c2c0-1f48-4a1c-af9f-6399c3240b73"
code = "939fd7c6caf754f4f41f"
kind = "OAuth"
state = "state"
}
resource_group_name = "myRg"
source_control_id = "789e0c1f-4a3d-43ad-809c-e713b677b04a"
workspace_name = "myWorkspace"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.securityinsights.SourceControl;
import com.pulumi.azurenative.securityinsights.SourceControlArgs;
import com.pulumi.azurenative.securityinsights.inputs.RepositoryArgs;
import com.pulumi.azurenative.securityinsights.inputs.RepositoryAccessArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sourceControl = new SourceControl("sourceControl", SourceControlArgs.builder()
.contentTypes(
"AnalyticsRule",
"Workbook")
.description("This is a source control")
.displayName("My Source Control")
.repoType("Github")
.repository(RepositoryArgs.builder()
.branch("master")
.displayUrl("https://github.com/user/repo")
.url("https://github.com/user/repo")
.build())
.repositoryAccess(RepositoryAccessArgs.builder()
.clientId("54b3c2c0-1f48-4a1c-af9f-6399c3240b73")
.code("939fd7c6caf754f4f41f")
.kind("OAuth")
.state("state")
.build())
.resourceGroupName("myRg")
.sourceControlId("789e0c1f-4a3d-43ad-809c-e713b677b04a")
.workspaceName("myWorkspace")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sourceControl = new azure_native.securityinsights.SourceControl("sourceControl", {
contentTypes: [
azure_native.securityinsights.ContentType.AnalyticsRule,
azure_native.securityinsights.ContentType.Workbook,
],
description: "This is a source control",
displayName: "My Source Control",
repoType: azure_native.securityinsights.RepoType.Github,
repository: {
branch: "master",
displayUrl: "https://github.com/user/repo",
url: "https://github.com/user/repo",
},
repositoryAccess: {
clientId: "54b3c2c0-1f48-4a1c-af9f-6399c3240b73",
code: "939fd7c6caf754f4f41f",
kind: azure_native.securityinsights.RepositoryAccessKind.OAuth,
state: "state",
},
resourceGroupName: "myRg",
sourceControlId: "789e0c1f-4a3d-43ad-809c-e713b677b04a",
workspaceName: "myWorkspace",
});
import pulumi
import pulumi_azure_native as azure_native
source_control = azure_native.securityinsights.SourceControl("sourceControl",
content_types=[
azure_native.securityinsights.ContentType.ANALYTICS_RULE,
azure_native.securityinsights.ContentType.WORKBOOK,
],
description="This is a source control",
display_name="My Source Control",
repo_type=azure_native.securityinsights.RepoType.GITHUB,
repository={
"branch": "master",
"display_url": "https://github.com/user/repo",
"url": "https://github.com/user/repo",
},
repository_access={
"client_id": "54b3c2c0-1f48-4a1c-af9f-6399c3240b73",
"code": "939fd7c6caf754f4f41f",
"kind": azure_native.securityinsights.RepositoryAccessKind.O_AUTH,
"state": "state",
},
resource_group_name="myRg",
source_control_id="789e0c1f-4a3d-43ad-809c-e713b677b04a",
workspace_name="myWorkspace")
resources:
sourceControl:
type: azure-native:securityinsights:SourceControl
properties:
contentTypes:
- AnalyticsRule
- Workbook
description: This is a source control
displayName: My Source Control
repoType: Github
repository:
branch: master
displayUrl: https://github.com/user/repo
url: https://github.com/user/repo
repositoryAccess:
clientId: 54b3c2c0-1f48-4a1c-af9f-6399c3240b73
code: 939fd7c6caf754f4f41f
kind: OAuth
state: state
resourceGroupName: myRg
sourceControlId: 789e0c1f-4a3d-43ad-809c-e713b677b04a
workspaceName: myWorkspace
Create SourceControl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def SourceControl(resource_name: str,
args: SourceControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SourceControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
content_types: Optional[Sequence[Union[str, ContentType]]] = None,
display_name: Optional[str] = None,
repo_type: Optional[Union[str, RepoType]] = None,
repository: Optional[RepositoryArgs] = None,
resource_group_name: Optional[str] = None,
workspace_name: Optional[str] = None,
description: Optional[str] = None,
repository_access: Optional[RepositoryAccessArgs] = None,
repository_resource_info: Optional[RepositoryResourceInfoArgs] = None,
service_principal: Optional[ServicePrincipalArgs] = None,
source_control_id: Optional[str] = None)
type: azure-native:securityinsights:SourceControl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_securityinsights_source_control" "name" {
# resource properties
}
Parameters
- resource_name
str
- The unique name of the resource.
- args
SourceControlArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
SourceControlArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
SourceControlArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeSourceControlResource = new AzureNative.SecurityInsights.SourceControl("azure-nativeSourceControlResource", new()
{
ContentTypes =
{
"string",
},
DisplayName = "string",
RepoType = "string",
Repository = new AzureNative.SecurityInsights.Inputs.RepositoryArgs
{
Branch = "string",
Url = "string",
DisplayUrl = "string",
},
ResourceGroupName = "string",
WorkspaceName = "string",
Description = "string",
RepositoryAccess = new AzureNative.SecurityInsights.Inputs.RepositoryAccessArgs
{
Kind = "string",
ClientId = "string",
Code = "string",
InstallationId = "string",
State = "string",
Token = "string",
},
RepositoryResourceInfo = new AzureNative.SecurityInsights.Inputs.RepositoryResourceInfoArgs
{
Webhook = new AzureNative.SecurityInsights.Inputs.WebhookArgs
{
RotateWebhookSecret = false,
},
},
ServicePrincipal = new AzureNative.SecurityInsights.Inputs.ServicePrincipalArgs
{
CredentialsExpireOn = "string",
},
SourceControlId = "string",
});
example, err := securityinsights.NewSourceControl(ctx, "azure-nativeSourceControlResource", &securityinsights.SourceControlArgs{
ContentTypes: pulumi.StringArray{
pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
RepoType: pulumi.String("string"),
Repository: &securityinsights.RepositoryArgs{
Branch: pulumi.String("string"),
Url: pulumi.String("string"),
DisplayUrl: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
WorkspaceName: pulumi.String("string"),
Description: pulumi.String("string"),
RepositoryAccess: &securityinsights.RepositoryAccessArgs{
Kind: pulumi.String("string"),
ClientId: pulumi.String("string"),
Code: pulumi.String("string"),
InstallationId: pulumi.String("string"),
State: pulumi.String("string"),
Token: pulumi.String("string"),
},
RepositoryResourceInfo: &securityinsights.RepositoryResourceInfoArgs{
Webhook: &securityinsights.WebhookArgs{
RotateWebhookSecret: pulumi.Bool(false),
},
},
ServicePrincipal: &securityinsights.ServicePrincipalArgs{
CredentialsExpireOn: pulumi.String("string"),
},
SourceControlId: pulumi.String("string"),
})
resource "azure-native_securityinsights_source_control" "azure-nativeSourceControlResource" {
lifecycle {
create_before_destroy = true
}
content_types = ["string"]
display_name = "string"
repo_type = "string"
repository = {
branch = "string"
url = "string"
display_url = "string"
}
resource_group_name = "string"
workspace_name = "string"
description = "string"
repository_access = {
kind = "string"
client_id = "string"
code = "string"
installation_id = "string"
state = "string"
token = "string"
}
repository_resource_info = {
webhook = {
rotate_webhook_secret = false
}
}
service_principal = {
credentials_expire_on = "string"
}
source_control_id = "string"
}
var azure_nativeSourceControlResource = new com.pulumi.azurenative.securityinsights.SourceControl("azure-nativeSourceControlResource", com.pulumi.azurenative.securityinsights.SourceControlArgs.builder()
.contentTypes("string")
.displayName("string")
.repoType("string")
.repository(RepositoryArgs.builder()
.branch("string")
.url("string")
.displayUrl("string")
.build())
.resourceGroupName("string")
.workspaceName("string")
.description("string")
.repositoryAccess(RepositoryAccessArgs.builder()
.kind("string")
.clientId("string")
.code("string")
.installationId("string")
.state("string")
.token("string")
.build())
.repositoryResourceInfo(RepositoryResourceInfoArgs.builder()
.webhook(com.pulumi.azurenative.securityinsights.inputs.WebhookArgs.builder()
.rotateWebhookSecret(false)
.build())
.build())
.servicePrincipal(com.pulumi.azurenative.securityinsights.inputs.ServicePrincipalArgs.builder()
.credentialsExpireOn("string")
.build())
.sourceControlId("string")
.build());
azure_native_source_control_resource = azure_native.securityinsights.SourceControl("azure-nativeSourceControlResource",
content_types=["string"],
display_name="string",
repo_type="string",
repository={
"branch": "string",
"url": "string",
"display_url": "string",
},
resource_group_name="string",
workspace_name="string",
description="string",
repository_access={
"kind": "string",
"client_id": "string",
"code": "string",
"installation_id": "string",
"state": "string",
"token": "string",
},
repository_resource_info={
"webhook": {
"rotate_webhook_secret": False,
},
},
service_principal={
"credentials_expire_on": "string",
},
source_control_id="string")
const azure_nativeSourceControlResource = new azure_native.securityinsights.SourceControl("azure-nativeSourceControlResource", {
contentTypes: ["string"],
displayName: "string",
repoType: "string",
repository: {
branch: "string",
url: "string",
displayUrl: "string",
},
resourceGroupName: "string",
workspaceName: "string",
description: "string",
repositoryAccess: {
kind: "string",
clientId: "string",
code: "string",
installationId: "string",
state: "string",
token: "string",
},
repositoryResourceInfo: {
webhook: {
rotateWebhookSecret: false,
},
},
servicePrincipal: {
credentialsExpireOn: "string",
},
sourceControlId: "string",
});
type: azure-native:securityinsights:SourceControl
properties:
contentTypes:
- string
description: string
displayName: string
repoType: string
repository:
branch: string
displayUrl: string
url: string
repositoryAccess:
clientId: string
code: string
installationId: string
kind: string
state: string
token: string
repositoryResourceInfo:
webhook:
rotateWebhookSecret: false
resourceGroupName: string
servicePrincipal:
credentialsExpireOn: string
sourceControlId: string
workspaceName: string
SourceControl Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SourceControl resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceControl resource produces the following output properties:
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- last_deployment_info
object
- Information regarding the latest deployment for the source control.
- name
string
- The name of the resource
- pull_request
object
- Information regarding the pull request of the source control.
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- version
string
- The version number associated with the source control
- workload_identity_federation
object
- Workload Identity metadata.
- etag
string
- Etag of the azure resource
Look up Existing SourceControl Resource
Get an existing SourceControl resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static SourceControl get(String name, Output<String> id, CustomResourceOptions options)
resources: existingSourceControl: type: azure-native:securityinsights:SourceControl get: id: ${id}
import {
to = azure-native_securityinsights_source_control.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
SourceControlState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
AzureDevOpsResourceInfoResponse, AzureDevOpsResourceInfoResponseArgs
Resources created in Azure DevOps repository.- PipelineId
string
- Id of the pipeline created for the source-control.
- ServiceConnectionId
string
- Id of the service-connection created for the source-control.
- PipelineId
string
- Id of the pipeline created for the source-control.
- ServiceConnectionId
string
- Id of the service-connection created for the source-control.
- pipelineId
String
- Id of the pipeline created for the source-control.
- serviceConnectionId
String
- Id of the service-connection created for the source-control.
- pipelineId
string
- Id of the pipeline created for the source-control.
- serviceConnectionId
string
- Id of the service-connection created for the source-control.
- pipelineId
String
- Id of the pipeline created for the source-control.
- serviceConnectionId
String
- Id of the service-connection created for the source-control.
ContentType, ContentTypeArgs
The content type of a source control path.| Name | Value | Description |
|---|
| AnalyticsRule | AnalyticsRule | AnalyticsRule |
| AutomationRule | AutomationRule | AutomationRule |
| HuntingQuery | HuntingQuery | HuntingQuery |
| Parser | Parser | Parser |
| Playbook | Playbook | Playbook |
| Workbook | Workbook | Workbook |
| Name | Value | Description |
|---|
| ContentTypeAnalyticsRule | AnalyticsRule | AnalyticsRule |
| ContentTypeAutomationRule | AutomationRule | AutomationRule |
| ContentTypeHuntingQuery | HuntingQuery | HuntingQuery |
| ContentTypeParser | Parser | Parser |
| ContentTypePlaybook | Playbook | Playbook |
| ContentTypeWorkbook | Workbook | Workbook |
| Value | Description |
|---|
AnalyticsRule | AnalyticsRule |
AutomationRule | AutomationRule |
HuntingQuery | HuntingQuery |
Parser | Parser |
Playbook | Playbook |
Workbook | Workbook |
| Name | Value | Description |
|---|
| AnalyticsRule | AnalyticsRule | AnalyticsRule |
| AutomationRule | AutomationRule | AutomationRule |
| HuntingQuery | HuntingQuery | HuntingQuery |
| Parser | Parser | Parser |
| Playbook | Playbook | Playbook |
| Workbook | Workbook | Workbook |
| Name | Value | Description |
|---|
| AnalyticsRule | AnalyticsRule | AnalyticsRule |
| AutomationRule | AutomationRule | AutomationRule |
| HuntingQuery | HuntingQuery | HuntingQuery |
| Parser | Parser | Parser |
| Playbook | Playbook | Playbook |
| Workbook | Workbook | Workbook |
| Name | Value | Description |
|---|
| ANALYTICS_RULE | AnalyticsRule | AnalyticsRule |
| AUTOMATION_RULE | AutomationRule | AutomationRule |
| HUNTING_QUERY | HuntingQuery | HuntingQuery |
| PARSER | Parser | Parser |
| PLAYBOOK | Playbook | Playbook |
| WORKBOOK | Workbook | Workbook |
| Value | Description |
|---|
AnalyticsRule | AnalyticsRule |
AutomationRule | AutomationRule |
HuntingQuery | HuntingQuery |
Parser | Parser |
Playbook | Playbook |
Workbook | Workbook |
DeploymentInfoResponse, DeploymentInfoResponseArgs
Information regarding a deployment.DeploymentResponse, DeploymentResponseArgs
Description about a deployment.GitHubResourceInfoResponse, GitHubResourceInfoResponseArgs
Resources created in GitHub repository.PullRequestResponse, PullRequestResponseArgs
Information regarding pull request for protected branches.- State
string
- State of the pull request
- Url
string
- URL of pull request
- State
string
- State of the pull request
- Url
string
- URL of pull request
- state
string
- State of the pull request
- url
string
- URL of pull request
- state
String
- State of the pull request
- url
String
- URL of pull request
- state
string
- State of the pull request
- url
string
- URL of pull request
- state
str
- State of the pull request
- url
str
- URL of pull request
- state
String
- State of the pull request
- url
String
- URL of pull request
RepoType, RepoTypeArgs
The repository type of the source control| Name | Value | Description |
|---|
| Github | Github | Github |
| AzureDevOps | AzureDevOps | AzureDevOps |
| Name | Value | Description |
|---|
| RepoTypeGithub | Github | Github |
| RepoTypeAzureDevOps | AzureDevOps | AzureDevOps |
| Value | Description |
|---|
Github | Github |
AzureDevOps | AzureDevOps |
| Name | Value | Description |
|---|
| Github | Github | Github |
| AzureDevOps | AzureDevOps | AzureDevOps |
| Name | Value | Description |
|---|
| Github | Github | Github |
| AzureDevOps | AzureDevOps | AzureDevOps |
| Name | Value | Description |
|---|
| GITHUB | Github | Github |
| AZURE_DEV_OPS | AzureDevOps | AzureDevOps |
| Value | Description |
|---|
Github | Github |
AzureDevOps | AzureDevOps |
Repository, RepositoryArgs
metadata of a repository.- Branch
string
- Branch name of repository.
- Url
string
- Url of repository.
- DisplayUrl
string
- Display url of repository.
- Branch
string
- Branch name of repository.
- Url
string
- Url of repository.
- DisplayUrl
string
- Display url of repository.
- branch
string
- Branch name of repository.
- url
string
- Url of repository.
- display_url
string
- Display url of repository.
- branch
String
- Branch name of repository.
- url
String
- Url of repository.
- displayUrl
String
- Display url of repository.
- branch
string
- Branch name of repository.
- url
string
- Url of repository.
- displayUrl
string
- Display url of repository.
- branch
str
- Branch name of repository.
- url
str
- Url of repository.
- display_url
str
- Display url of repository.
- branch
String
- Branch name of repository.
- url
String
- Url of repository.
- displayUrl
String
- Display url of repository.
RepositoryAccess, RepositoryAccessArgs
Credentials to access repository.- Kind
string | RepositoryAccessKind
- The kind of repository access credentials
- ClientId
string
- OAuth ClientId. Required when
kind is OAuth - Code
string
- OAuth Code. Required when
kind is OAuth - InstallationId
string
- Application installation ID. Required when
kind is App. Supported by GitHub only. - State
string
- OAuth State. Required when
kind is OAuth - Token
string
- Personal Access Token. Required when
kind is PAT
- kind
string | "OAuth" | "PAT" | "App"
- The kind of repository access credentials
- client_id
string
- OAuth ClientId. Required when
kind is OAuth - code
string
- OAuth Code. Required when
kind is OAuth - installation_id
string
- Application installation ID. Required when
kind is App. Supported by GitHub only. - state
string
- OAuth State. Required when
kind is OAuth - token
string
- Personal Access Token. Required when
kind is PAT
- kind
String | RepositoryAccessKind
- The kind of repository access credentials
- clientId
String
- OAuth ClientId. Required when
kind is OAuth - code
String
- OAuth Code. Required when
kind is OAuth - installationId
String
- Application installation ID. Required when
kind is App. Supported by GitHub only. - state
String
- OAuth State. Required when
kind is OAuth - token
String
- Personal Access Token. Required when
kind is PAT
- kind
string | RepositoryAccessKind
- The kind of repository access credentials
- clientId
string
- OAuth ClientId. Required when
kind is OAuth - code
string
- OAuth Code. Required when
kind is OAuth - installationId
string
- Application installation ID. Required when
kind is App. Supported by GitHub only. - state
string
- OAuth State. Required when
kind is OAuth - token
string
- Personal Access Token. Required when
kind is PAT
- kind
str | RepositoryAccessKind
- The kind of repository access credentials
- client_id
str
- OAuth ClientId. Required when
kind is OAuth - code
str
- OAuth Code. Required when
kind is OAuth - installation_id
str
- Application installation ID. Required when
kind is App. Supported by GitHub only. - state
str
- OAuth State. Required when
kind is OAuth - token
str
- Personal Access Token. Required when
kind is PAT
- kind
String | "OAuth" | "PAT" | "App"
- The kind of repository access credentials
- clientId
String
- OAuth ClientId. Required when
kind is OAuth - code
String
- OAuth Code. Required when
kind is OAuth - installationId
String
- Application installation ID. Required when
kind is App. Supported by GitHub only. - state
String
- OAuth State. Required when
kind is OAuth - token
String
- Personal Access Token. Required when
kind is PAT
RepositoryAccessKind, RepositoryAccessKindArgs
The kind of repository access credentials| Name | Value | Description |
|---|
| OAuth | OAuth | OAuth |
| PAT | PAT | PAT |
| App | App | App |
| Name | Value | Description |
|---|
| RepositoryAccessKindOAuth | OAuth | OAuth |
| RepositoryAccessKindPAT | PAT | PAT |
| RepositoryAccessKindApp | App | App |
| Value | Description |
|---|
OAuth | OAuth |
PAT | PAT |
App | App |
| Name | Value | Description |
|---|
| OAuth | OAuth | OAuth |
| PAT | PAT | PAT |
| App | App | App |
| Name | Value | Description |
|---|
| OAuth | OAuth | OAuth |
| PAT | PAT | PAT |
| App | App | App |
| Name | Value | Description |
|---|
| O_AUTH | OAuth | OAuth |
| PAT | PAT | PAT |
| APP | App | App |
| Value | Description |
|---|
OAuth | OAuth |
PAT | PAT |
App | App |
RepositoryResourceInfo, RepositoryResourceInfoArgs
Resources created in user's repository for the source-control.RepositoryResourceInfoResponse, RepositoryResourceInfoResponseArgs
Resources created in user's repository for the source-control.RepositoryResponse, RepositoryResponseArgs
metadata of a repository.ServicePrincipal, ServicePrincipalArgs
Service principal metadata.ServicePrincipalResponse, ServicePrincipalResponseArgs
Service principal metadata.- AppId
string
- App id of service principal.
- Id
string
- Id of service principal.
- TenantId
string
- Tenant id of service principal.
- CredentialsExpireOn
string
- Expiration time of service principal credentials.
- AppId
string
- App id of service principal.
- Id
string
- Id of service principal.
- TenantId
string
- Tenant id of service principal.
- CredentialsExpireOn
string
- Expiration time of service principal credentials.
- app_id
string
- App id of service principal.
- id
string
- Id of service principal.
- tenant_id
string
- Tenant id of service principal.
- credentials_expire_on
string
- Expiration time of service principal credentials.
- appId
String
- App id of service principal.
- id
String
- Id of service principal.
- tenantId
String
- Tenant id of service principal.
- credentialsExpireOn
String
- Expiration time of service principal credentials.
- appId
string
- App id of service principal.
- id
string
- Id of service principal.
- tenantId
string
- Tenant id of service principal.
- credentialsExpireOn
string
- Expiration time of service principal credentials.
- appId
String
- App id of service principal.
- id
String
- Id of service principal.
- tenantId
String
- Tenant id of service principal.
- credentialsExpireOn
String
- Expiration time of service principal credentials.
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Webhook, WebhookArgs
Detail about the webhook object.WebhookResponse, WebhookResponseArgs
Detail about the webhook object.WorkloadIdentityFederationResponse, WorkloadIdentityFederationResponseArgs
Workload Identity Federation metadata.- AppId
string
- App id of Workload Identity Federation.
- Id
string
- Id of Workload Identity Federation.
- Issuer
string
- Issuer of Workload Identity Federation.
- Subject
string
- Subject of Workload Identity Federation.
- TenantId
string
- Tenant id of Workload Identity Federation.
- AppId
string
- App id of Workload Identity Federation.
- Id
string
- Id of Workload Identity Federation.
- Issuer
string
- Issuer of Workload Identity Federation.
- Subject
string
- Subject of Workload Identity Federation.
- TenantId
string
- Tenant id of Workload Identity Federation.
- app_id
string
- App id of Workload Identity Federation.
- id
string
- Id of Workload Identity Federation.
- issuer
string
- Issuer of Workload Identity Federation.
- subject
string
- Subject of Workload Identity Federation.
- tenant_id
string
- Tenant id of Workload Identity Federation.
- appId
String
- App id of Workload Identity Federation.
- id
String
- Id of Workload Identity Federation.
- issuer
String
- Issuer of Workload Identity Federation.
- subject
String
- Subject of Workload Identity Federation.
- tenantId
String
- Tenant id of Workload Identity Federation.
- appId
string
- App id of Workload Identity Federation.
- id
string
- Id of Workload Identity Federation.
- issuer
string
- Issuer of Workload Identity Federation.
- subject
string
- Subject of Workload Identity Federation.
- tenantId
string
- Tenant id of Workload Identity Federation.
- app_id
str
- App id of Workload Identity Federation.
- id
str
- Id of Workload Identity Federation.
- issuer
str
- Issuer of Workload Identity Federation.
- subject
str
- Subject of Workload Identity Federation.
- tenant_id
str
- Tenant id of Workload Identity Federation.
- appId
String
- App id of Workload Identity Federation.
- id
String
- Id of Workload Identity Federation.
- issuer
String
- Issuer of Workload Identity Federation.
- subject
String
- Subject of Workload Identity Federation.
- tenantId
String
- Tenant id of Workload Identity Federation.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:securityinsights:SourceControl 789e0c1f-4a3d-43ad-809c-e713b677b04a /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/sourcecontrols/{sourceControlId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0