This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.securityinsights.getSourceControl
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets a source control byt its identifier. Azure REST API version: 2023-05-01-preview.
Other available API versions: 2021-03-01-preview.
Using getSourceControl
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSourceControl(args: GetSourceControlArgs, opts?: InvokeOptions): Promise<GetSourceControlResult>
function getSourceControlOutput(args: GetSourceControlOutputArgs, opts?: InvokeOptions): Output<GetSourceControlResult>def get_source_control(resource_group_name: Optional[str] = None,
                       source_control_id: Optional[str] = None,
                       workspace_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetSourceControlResult
def get_source_control_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                       source_control_id: Optional[pulumi.Input[str]] = None,
                       workspace_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetSourceControlResult]func LookupSourceControl(ctx *Context, args *LookupSourceControlArgs, opts ...InvokeOption) (*LookupSourceControlResult, error)
func LookupSourceControlOutput(ctx *Context, args *LookupSourceControlOutputArgs, opts ...InvokeOption) LookupSourceControlResultOutput> Note: This function is named LookupSourceControl in the Go SDK.
public static class GetSourceControl 
{
    public static Task<GetSourceControlResult> InvokeAsync(GetSourceControlArgs args, InvokeOptions? opts = null)
    public static Output<GetSourceControlResult> Invoke(GetSourceControlInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSourceControlResult> getSourceControl(GetSourceControlArgs args, InvokeOptions options)
public static Output<GetSourceControlResult> getSourceControl(GetSourceControlArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:securityinsights:getSourceControl
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SourceControl stringId 
- Source control Id
- WorkspaceName string
- The name of the workspace.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SourceControl stringId 
- Source control Id
- WorkspaceName string
- The name of the workspace.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- sourceControl StringId 
- Source control Id
- workspaceName String
- The name of the workspace.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- sourceControl stringId 
- Source control Id
- workspaceName string
- The name of the workspace.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- source_control_ strid 
- Source control Id
- workspace_name str
- The name of the workspace.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- sourceControl StringId 
- Source control Id
- workspaceName String
- The name of the workspace.
getSourceControl Result
The following output properties are available:
- ContentTypes List<string>
- Array of source control content types.
- DisplayName string
- The display name of the source control
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- RepoType string
- The repository type of the source control
- Repository
Pulumi.Azure Native. Security Insights. Outputs. Repository Response 
- Repository metadata.
- SystemData Pulumi.Azure Native. Security Insights. Outputs. System Data Response 
- 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"
- Description string
- A description of the source control
- Etag string
- Etag of the azure resource
- LastDeployment Pulumi.Info Azure Native. Security Insights. Outputs. Deployment Info Response 
- Information regarding the latest deployment for the source control.
- RepositoryResource Pulumi.Info Azure Native. Security Insights. Outputs. Repository Resource Info Response 
- Information regarding the resources created in user's repository.
- Version string
- The version number associated with the source control
- ContentTypes []string
- Array of source control content types.
- DisplayName string
- The display name of the source control
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- RepoType string
- The repository type of the source control
- Repository
RepositoryResponse 
- Repository metadata.
- SystemData SystemData Response 
- 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"
- Description string
- A description of the source control
- Etag string
- Etag of the azure resource
- LastDeployment DeploymentInfo Info Response 
- Information regarding the latest deployment for the source control.
- RepositoryResource RepositoryInfo Resource Info Response 
- Information regarding the resources created in user's repository.
- Version string
- The version number associated with the source control
- contentTypes List<String>
- Array of source control content types.
- displayName String
- The display name of the source control
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- repoType String
- The repository type of the source control
- repository
RepositoryResponse 
- Repository metadata.
- systemData SystemData Response 
- 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"
- description String
- A description of the source control
- etag String
- Etag of the azure resource
- lastDeployment DeploymentInfo Info Response 
- Information regarding the latest deployment for the source control.
- repositoryResource RepositoryInfo Resource Info Response 
- Information regarding the resources created in user's repository.
- version String
- The version number associated with the source control
- contentTypes string[]
- Array of source control content types.
- displayName string
- The display name of the source control
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- repoType string
- The repository type of the source control
- repository
RepositoryResponse 
- Repository metadata.
- systemData SystemData Response 
- 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"
- description string
- A description of the source control
- etag string
- Etag of the azure resource
- lastDeployment DeploymentInfo Info Response 
- Information regarding the latest deployment for the source control.
- repositoryResource RepositoryInfo Resource Info Response 
- Information regarding the resources created in user's repository.
- version string
- The version number associated with the source control
- content_types Sequence[str]
- Array of source control content types.
- display_name str
- The display name of the source control
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- repo_type str
- The repository type of the source control
- repository
RepositoryResponse 
- Repository metadata.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- description str
- A description of the source control
- etag str
- Etag of the azure resource
- last_deployment_ Deploymentinfo Info Response 
- Information regarding the latest deployment for the source control.
- repository_resource_ Repositoryinfo Resource Info Response 
- Information regarding the resources created in user's repository.
- version str
- The version number associated with the source control
- contentTypes List<String>
- Array of source control content types.
- displayName String
- The display name of the source control
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- repoType String
- The repository type of the source control
- repository Property Map
- Repository metadata.
- systemData Property Map
- 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"
- description String
- A description of the source control
- etag String
- Etag of the azure resource
- lastDeployment Property MapInfo 
- Information regarding the latest deployment for the source control.
- repositoryResource Property MapInfo 
- Information regarding the resources created in user's repository.
- version String
- The version number associated with the source control
Supporting Types
AzureDevOpsResourceInfoResponse     
- PipelineId string
- Id of the pipeline created for the source-control.
- ServiceConnection stringId 
- Id of the service-connection created for the source-control.
- PipelineId string
- Id of the pipeline created for the source-control.
- ServiceConnection stringId 
- Id of the service-connection created for the source-control.
- pipelineId String
- Id of the pipeline created for the source-control.
- serviceConnection StringId 
- Id of the service-connection created for the source-control.
- pipelineId string
- Id of the pipeline created for the source-control.
- serviceConnection stringId 
- Id of the service-connection created for the source-control.
- pipeline_id str
- Id of the pipeline created for the source-control.
- service_connection_ strid 
- Id of the service-connection created for the source-control.
- pipelineId String
- Id of the pipeline created for the source-control.
- serviceConnection StringId 
- Id of the service-connection created for the source-control.
ContentPathMapResponse   
- ContentType string
- Content type.
- Path string
- The path to the content.
- ContentType string
- Content type.
- Path string
- The path to the content.
- contentType String
- Content type.
- path String
- The path to the content.
- contentType string
- Content type.
- path string
- The path to the content.
- content_type str
- Content type.
- path str
- The path to the content.
- contentType String
- Content type.
- path String
- The path to the content.
DeploymentInfoResponse  
- Deployment
Pulumi.Azure Native. Security Insights. Inputs. Deployment Response 
- Deployment information.
- DeploymentFetch stringStatus 
- Status while fetching the last deployment.
- Message string
- Additional details about the deployment that can be shown to the user.
- Deployment
DeploymentResponse 
- Deployment information.
- DeploymentFetch stringStatus 
- Status while fetching the last deployment.
- Message string
- Additional details about the deployment that can be shown to the user.
- deployment
DeploymentResponse 
- Deployment information.
- deploymentFetch StringStatus 
- Status while fetching the last deployment.
- message String
- Additional details about the deployment that can be shown to the user.
- deployment
DeploymentResponse 
- Deployment information.
- deploymentFetch stringStatus 
- Status while fetching the last deployment.
- message string
- Additional details about the deployment that can be shown to the user.
- deployment
DeploymentResponse 
- Deployment information.
- deployment_fetch_ strstatus 
- Status while fetching the last deployment.
- message str
- Additional details about the deployment that can be shown to the user.
- deployment Property Map
- Deployment information.
- deploymentFetch StringStatus 
- Status while fetching the last deployment.
- message String
- Additional details about the deployment that can be shown to the user.
DeploymentResponse 
- DeploymentId string
- Deployment identifier.
- DeploymentLogs stringUrl 
- Url to access repository action logs.
- DeploymentResult string
- The outcome of the deployment.
- DeploymentState string
- Current status of the deployment.
- DeploymentTime string
- The time when the deployment finished.
- DeploymentId string
- Deployment identifier.
- DeploymentLogs stringUrl 
- Url to access repository action logs.
- DeploymentResult string
- The outcome of the deployment.
- DeploymentState string
- Current status of the deployment.
- DeploymentTime string
- The time when the deployment finished.
- deploymentId String
- Deployment identifier.
- deploymentLogs StringUrl 
- Url to access repository action logs.
- deploymentResult String
- The outcome of the deployment.
- deploymentState String
- Current status of the deployment.
- deploymentTime String
- The time when the deployment finished.
- deploymentId string
- Deployment identifier.
- deploymentLogs stringUrl 
- Url to access repository action logs.
- deploymentResult string
- The outcome of the deployment.
- deploymentState string
- Current status of the deployment.
- deploymentTime string
- The time when the deployment finished.
- deployment_id str
- Deployment identifier.
- deployment_logs_ strurl 
- Url to access repository action logs.
- deployment_result str
- The outcome of the deployment.
- deployment_state str
- Current status of the deployment.
- deployment_time str
- The time when the deployment finished.
- deploymentId String
- Deployment identifier.
- deploymentLogs StringUrl 
- Url to access repository action logs.
- deploymentResult String
- The outcome of the deployment.
- deploymentState String
- Current status of the deployment.
- deploymentTime String
- The time when the deployment finished.
GitHubResourceInfoResponse    
- AppInstallation stringId 
- GitHub application installation id.
- AppInstallation stringId 
- GitHub application installation id.
- appInstallation StringId 
- GitHub application installation id.
- appInstallation stringId 
- GitHub application installation id.
- app_installation_ strid 
- GitHub application installation id.
- appInstallation StringId 
- GitHub application installation id.
RepositoryResourceInfoResponse   
- AzureDev Pulumi.Ops Resource Info Azure Native. Security Insights. Inputs. Azure Dev Ops Resource Info Response 
- Resources created in Azure DevOps for this source-control.
- GitHub Pulumi.Resource Info Azure Native. Security Insights. Inputs. Git Hub Resource Info Response 
- Resources created in GitHub for this source-control.
- Webhook
Pulumi.Azure Native. Security Insights. Inputs. Webhook Response 
- The webhook object created for the source-control.
- AzureDev AzureOps Resource Info Dev Ops Resource Info Response 
- Resources created in Azure DevOps for this source-control.
- GitHub GitResource Info Hub Resource Info Response 
- Resources created in GitHub for this source-control.
- Webhook
WebhookResponse 
- The webhook object created for the source-control.
- azureDev AzureOps Resource Info Dev Ops Resource Info Response 
- Resources created in Azure DevOps for this source-control.
- gitHub GitResource Info Hub Resource Info Response 
- Resources created in GitHub for this source-control.
- webhook
WebhookResponse 
- The webhook object created for the source-control.
- azureDev AzureOps Resource Info Dev Ops Resource Info Response 
- Resources created in Azure DevOps for this source-control.
- gitHub GitResource Info Hub Resource Info Response 
- Resources created in GitHub for this source-control.
- webhook
WebhookResponse 
- The webhook object created for the source-control.
- azure_dev_ Azureops_ resource_ info Dev Ops Resource Info Response 
- Resources created in Azure DevOps for this source-control.
- git_hub_ Gitresource_ info Hub Resource Info Response 
- Resources created in GitHub for this source-control.
- webhook
WebhookResponse 
- The webhook object created for the source-control.
- azureDev Property MapOps Resource Info 
- Resources created in Azure DevOps for this source-control.
- gitHub Property MapResource Info 
- Resources created in GitHub for this source-control.
- webhook Property Map
- The webhook object created for the source-control.
RepositoryResponse 
- Branch string
- Branch name of repository.
- DeploymentLogs stringUrl 
- Url to access repository action logs.
- DisplayUrl string
- Display url of repository.
- PathMapping List<Pulumi.Azure Native. Security Insights. Inputs. Content Path Map Response> 
- Dictionary of source control content type and path mapping.
- Url string
- Url of repository.
- Branch string
- Branch name of repository.
- DeploymentLogs stringUrl 
- Url to access repository action logs.
- DisplayUrl string
- Display url of repository.
- PathMapping []ContentPath Map Response 
- Dictionary of source control content type and path mapping.
- Url string
- Url of repository.
- branch String
- Branch name of repository.
- deploymentLogs StringUrl 
- Url to access repository action logs.
- displayUrl String
- Display url of repository.
- pathMapping List<ContentPath Map Response> 
- Dictionary of source control content type and path mapping.
- url String
- Url of repository.
- branch string
- Branch name of repository.
- deploymentLogs stringUrl 
- Url to access repository action logs.
- displayUrl string
- Display url of repository.
- pathMapping ContentPath Map Response[] 
- Dictionary of source control content type and path mapping.
- url string
- Url of repository.
- branch str
- Branch name of repository.
- deployment_logs_ strurl 
- Url to access repository action logs.
- display_url str
- Display url of repository.
- path_mapping Sequence[ContentPath Map Response] 
- Dictionary of source control content type and path mapping.
- url str
- Url of repository.
- branch String
- Branch name of repository.
- deploymentLogs StringUrl 
- Url to access repository action logs.
- displayUrl String
- Display url of repository.
- pathMapping List<Property Map>
- Dictionary of source control content type and path mapping.
- url String
- Url of repository.
SystemDataResponse  
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
WebhookResponse 
- RotateWebhook boolSecret 
- A flag to instruct the backend service to rotate webhook secret.
- WebhookId string
- Unique identifier for the webhook.
- WebhookSecret stringUpdate Time 
- Time when the webhook secret was updated.
- WebhookUrl string
- URL that gets invoked by the webhook.
- RotateWebhook boolSecret 
- A flag to instruct the backend service to rotate webhook secret.
- WebhookId string
- Unique identifier for the webhook.
- WebhookSecret stringUpdate Time 
- Time when the webhook secret was updated.
- WebhookUrl string
- URL that gets invoked by the webhook.
- rotateWebhook BooleanSecret 
- A flag to instruct the backend service to rotate webhook secret.
- webhookId String
- Unique identifier for the webhook.
- webhookSecret StringUpdate Time 
- Time when the webhook secret was updated.
- webhookUrl String
- URL that gets invoked by the webhook.
- rotateWebhook booleanSecret 
- A flag to instruct the backend service to rotate webhook secret.
- webhookId string
- Unique identifier for the webhook.
- webhookSecret stringUpdate Time 
- Time when the webhook secret was updated.
- webhookUrl string
- URL that gets invoked by the webhook.
- rotate_webhook_ boolsecret 
- A flag to instruct the backend service to rotate webhook secret.
- webhook_id str
- Unique identifier for the webhook.
- webhook_secret_ strupdate_ time 
- Time when the webhook secret was updated.
- webhook_url str
- URL that gets invoked by the webhook.
- rotateWebhook BooleanSecret 
- A flag to instruct the backend service to rotate webhook secret.
- webhookId String
- Unique identifier for the webhook.
- webhookSecret StringUpdate Time 
- Time when the webhook secret was updated.
- webhookUrl String
- URL that gets invoked by the webhook.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi