1. Packages
  2. Azure Native
  3. API Docs
  4. securityinsights
  5. getSourceControl
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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.securityinsights.getSourceControl

Explore with Pulumi AI

azure-native logo
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.63.0 published on Tuesday, Sep 24, 2024 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:securityinsights:getSourceControl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SourceControlId string
    Source control Id
    WorkspaceName string
    The name of the workspace.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SourceControlId string
    Source control Id
    WorkspaceName string
    The name of the workspace.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sourceControlId String
    Source control Id
    workspaceName String
    The name of the workspace.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    sourceControlId string
    Source control Id
    workspaceName string
    The name of the workspace.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    source_control_id str
    Source control Id
    workspace_name str
    The name of the workspace.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sourceControlId String
    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. Ex - /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.AzureNative.SecurityInsights.Outputs.RepositoryResponse
    Repository metadata.
    SystemData Pulumi.AzureNative.SecurityInsights.Outputs.SystemDataResponse
    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
    LastDeploymentInfo Pulumi.AzureNative.SecurityInsights.Outputs.DeploymentInfoResponse
    Information regarding the latest deployment for the source control.
    RepositoryResourceInfo Pulumi.AzureNative.SecurityInsights.Outputs.RepositoryResourceInfoResponse
    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. Ex - /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 SystemDataResponse
    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
    LastDeploymentInfo DeploymentInfoResponse
    Information regarding the latest deployment for the source control.
    RepositoryResourceInfo RepositoryResourceInfoResponse
    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. Ex - /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 SystemDataResponse
    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
    lastDeploymentInfo DeploymentInfoResponse
    Information regarding the latest deployment for the source control.
    repositoryResourceInfo RepositoryResourceInfoResponse
    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. Ex - /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 SystemDataResponse
    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
    lastDeploymentInfo DeploymentInfoResponse
    Information regarding the latest deployment for the source control.
    repositoryResourceInfo RepositoryResourceInfoResponse
    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. Ex - /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 SystemDataResponse
    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_info DeploymentInfoResponse
    Information regarding the latest deployment for the source control.
    repository_resource_info RepositoryResourceInfoResponse
    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. Ex - /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
    lastDeploymentInfo Property Map
    Information regarding the latest deployment for the source control.
    repositoryResourceInfo Property Map
    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.
    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.
    pipeline_id str
    Id of the pipeline created for the source-control.
    service_connection_id str
    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.

    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.AzureNative.SecurityInsights.Inputs.DeploymentResponse
    Deployment information.
    DeploymentFetchStatus string
    Status while fetching the last deployment.
    Message string
    Additional details about the deployment that can be shown to the user.
    Deployment DeploymentResponse
    Deployment information.
    DeploymentFetchStatus string
    Status while fetching the last deployment.
    Message string
    Additional details about the deployment that can be shown to the user.
    deployment DeploymentResponse
    Deployment information.
    deploymentFetchStatus String
    Status while fetching the last deployment.
    message String
    Additional details about the deployment that can be shown to the user.
    deployment DeploymentResponse
    Deployment information.
    deploymentFetchStatus string
    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_status str
    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.
    deploymentFetchStatus String
    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.
    DeploymentLogsUrl string
    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.
    DeploymentLogsUrl string
    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.
    deploymentLogsUrl String
    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.
    deploymentLogsUrl string
    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_url str
    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.
    deploymentLogsUrl String
    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

    AppInstallationId string
    GitHub application installation id.
    AppInstallationId string
    GitHub application installation id.
    appInstallationId String
    GitHub application installation id.
    appInstallationId string
    GitHub application installation id.
    app_installation_id str
    GitHub application installation id.
    appInstallationId String
    GitHub application installation id.

    RepositoryResourceInfoResponse

    AzureDevOpsResourceInfo AzureDevOpsResourceInfoResponse
    Resources created in Azure DevOps for this source-control.
    GitHubResourceInfo GitHubResourceInfoResponse
    Resources created in GitHub for this source-control.
    Webhook WebhookResponse
    The webhook object created for the source-control.
    azureDevOpsResourceInfo AzureDevOpsResourceInfoResponse
    Resources created in Azure DevOps for this source-control.
    gitHubResourceInfo GitHubResourceInfoResponse
    Resources created in GitHub for this source-control.
    webhook WebhookResponse
    The webhook object created for the source-control.
    azureDevOpsResourceInfo AzureDevOpsResourceInfoResponse
    Resources created in Azure DevOps for this source-control.
    gitHubResourceInfo GitHubResourceInfoResponse
    Resources created in GitHub for this source-control.
    webhook WebhookResponse
    The webhook object created for the source-control.
    azure_dev_ops_resource_info AzureDevOpsResourceInfoResponse
    Resources created in Azure DevOps for this source-control.
    git_hub_resource_info GitHubResourceInfoResponse
    Resources created in GitHub for this source-control.
    webhook WebhookResponse
    The webhook object created for the source-control.
    azureDevOpsResourceInfo Property Map
    Resources created in Azure DevOps for this source-control.
    gitHubResourceInfo Property Map
    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.
    DeploymentLogsUrl string
    Url to access repository action logs.
    DisplayUrl string
    Display url of repository.
    PathMapping List<Pulumi.AzureNative.SecurityInsights.Inputs.ContentPathMapResponse>
    Dictionary of source control content type and path mapping.
    Url string
    Url of repository.
    Branch string
    Branch name of repository.
    DeploymentLogsUrl string
    Url to access repository action logs.
    DisplayUrl string
    Display url of repository.
    PathMapping []ContentPathMapResponse
    Dictionary of source control content type and path mapping.
    Url string
    Url of repository.
    branch String
    Branch name of repository.
    deploymentLogsUrl String
    Url to access repository action logs.
    displayUrl String
    Display url of repository.
    pathMapping List<ContentPathMapResponse>
    Dictionary of source control content type and path mapping.
    url String
    Url of repository.
    branch string
    Branch name of repository.
    deploymentLogsUrl string
    Url to access repository action logs.
    displayUrl string
    Display url of repository.
    pathMapping ContentPathMapResponse[]
    Dictionary of source control content type and path mapping.
    url string
    Url of repository.
    branch str
    Branch name of repository.
    deployment_logs_url str
    Url to access repository action logs.
    display_url str
    Display url of repository.
    path_mapping Sequence[ContentPathMapResponse]
    Dictionary of source control content type and path mapping.
    url str
    Url of repository.
    branch String
    Branch name of repository.
    deploymentLogsUrl String
    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.
    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.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    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.

    WebhookResponse

    RotateWebhookSecret bool
    A flag to instruct the backend service to rotate webhook secret.
    WebhookId string
    Unique identifier for the webhook.
    WebhookSecretUpdateTime string
    Time when the webhook secret was updated.
    WebhookUrl string
    URL that gets invoked by the webhook.
    RotateWebhookSecret bool
    A flag to instruct the backend service to rotate webhook secret.
    WebhookId string
    Unique identifier for the webhook.
    WebhookSecretUpdateTime string
    Time when the webhook secret was updated.
    WebhookUrl string
    URL that gets invoked by the webhook.
    rotateWebhookSecret Boolean
    A flag to instruct the backend service to rotate webhook secret.
    webhookId String
    Unique identifier for the webhook.
    webhookSecretUpdateTime String
    Time when the webhook secret was updated.
    webhookUrl String
    URL that gets invoked by the webhook.
    rotateWebhookSecret boolean
    A flag to instruct the backend service to rotate webhook secret.
    webhookId string
    Unique identifier for the webhook.
    webhookSecretUpdateTime string
    Time when the webhook secret was updated.
    webhookUrl string
    URL that gets invoked by the webhook.
    rotate_webhook_secret bool
    A flag to instruct the backend service to rotate webhook secret.
    webhook_id str
    Unique identifier for the webhook.
    webhook_secret_update_time str
    Time when the webhook secret was updated.
    webhook_url str
    URL that gets invoked by the webhook.
    rotateWebhookSecret Boolean
    A flag to instruct the backend service to rotate webhook secret.
    webhookId String
    Unique identifier for the webhook.
    webhookSecretUpdateTime String
    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
    azure-native logo
    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.63.0 published on Tuesday, Sep 24, 2024 by Pulumi