azure-native.securityinsights.getSourceControl
Explore with Pulumi AI
Gets a source control byt its identifier.
Uses Azure REST API version 2023-05-01-preview.
Other available API versions: 2023-03-01-preview, 2023-04-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.
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 dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
Control stringId - Source control Id
- Workspace
Name string - The name of the workspace.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
Control stringId - Source control Id
- Workspace
Name string - The name of the workspace.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
Control StringId - Source control Id
- workspace
Name String - The name of the workspace.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- source
Control stringId - Source control Id
- workspace
Name 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
Control StringId - Source control Id
- workspace
Name String - The name of the workspace.
getSourceControl Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Content
Types List<string> - Array of source control content types.
- Display
Name 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
- Repo
Type string - The repository type of the source control
- Repository
Pulumi.
Azure Native. Security Insights. Outputs. Repository Response - Repository metadata.
- System
Data 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
- Last
Deployment Pulumi.Info Azure Native. Security Insights. Outputs. Deployment Info Response - Information regarding the latest deployment for the source control.
- Repository
Resource 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
- Azure
Api stringVersion - The Azure API version of the resource.
- Content
Types []string - Array of source control content types.
- Display
Name 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
- Repo
Type string - The repository type of the source control
- Repository
Repository
Response - Repository metadata.
- System
Data 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
- 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 string
- The version number associated with the source control
- azure
Api StringVersion - The Azure API version of the resource.
- content
Types List<String> - Array of source control content types.
- display
Name 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
- repo
Type String - The repository type of the source control
- repository
Repository
Response - Repository metadata.
- system
Data 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
- 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 String
- The version number associated with the source control
- azure
Api stringVersion - The Azure API version of the resource.
- content
Types string[] - Array of source control content types.
- display
Name 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
- repo
Type string - The repository type of the source control
- repository
Repository
Response - Repository metadata.
- system
Data 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
- 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 string
- The version number associated with the source control
- azure_
api_ strversion - The Azure API version of the resource.
- 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
Repository
Response - 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
- azure
Api StringVersion - The Azure API version of the resource.
- content
Types List<String> - Array of source control content types.
- display
Name 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
- repo
Type String - The repository type of the source control
- repository Property Map
- Repository metadata.
- system
Data 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
- last
Deployment Property MapInfo - Information regarding the latest deployment for the source control.
- repository
Resource Property MapInfo - Information regarding the resources created in user's repository.
- version String
- The version number associated with the source control
Supporting Types
AzureDevOpsResourceInfoResponse
- Pipeline
Id string - Id of the pipeline created for the source-control.
- Service
Connection stringId - Id of the service-connection created for the source-control.
- Pipeline
Id string - Id of the pipeline created for the source-control.
- Service
Connection stringId - Id of the service-connection created for the source-control.
- pipeline
Id String - Id of the pipeline created for the source-control.
- service
Connection StringId - Id of the service-connection created for the source-control.
- pipeline
Id string - Id of the pipeline created for the source-control.
- service
Connection 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.
- pipeline
Id String - Id of the pipeline created for the source-control.
- service
Connection StringId - Id of the service-connection created for the source-control.
ContentPathMapResponse
- Content
Type string - Content type.
- Path string
- The path to the content.
- Content
Type string - Content type.
- Path string
- The path to the content.
- content
Type String - Content type.
- path String
- The path to the content.
- content
Type string - Content type.
- path string
- The path to the content.
- content_
type str - Content type.
- path str
- The path to the content.
- content
Type String - Content type.
- path String
- The path to the content.
DeploymentInfoResponse
- Deployment
Pulumi.
Azure Native. Security Insights. Inputs. Deployment Response - Deployment information.
- Deployment
Fetch stringStatus - Status while fetching the last deployment.
- Message string
- Additional details about the deployment that can be shown to the user.
- Deployment
Deployment
Response - Deployment information.
- Deployment
Fetch stringStatus - Status while fetching the last deployment.
- Message string
- Additional details about the deployment that can be shown to the user.
- deployment
Deployment
Response - Deployment information.
- deployment
Fetch StringStatus - Status while fetching the last deployment.
- message String
- Additional details about the deployment that can be shown to the user.
- deployment
Deployment
Response - Deployment information.
- deployment
Fetch stringStatus - Status while fetching the last deployment.
- message string
- Additional details about the deployment that can be shown to the user.
- deployment
Deployment
Response - 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.
- deployment
Fetch StringStatus - Status while fetching the last deployment.
- message String
- Additional details about the deployment that can be shown to the user.
DeploymentResponse
- Deployment
Id string - Deployment identifier.
- Deployment
Logs stringUrl - Url to access repository action logs.
- Deployment
Result string - The outcome of the deployment.
- Deployment
State string - Current status of the deployment.
- Deployment
Time string - The time when the deployment finished.
- Deployment
Id string - Deployment identifier.
- Deployment
Logs stringUrl - Url to access repository action logs.
- Deployment
Result string - The outcome of the deployment.
- Deployment
State string - Current status of the deployment.
- Deployment
Time string - The time when the deployment finished.
- deployment
Id String - Deployment identifier.
- deployment
Logs StringUrl - Url to access repository action logs.
- deployment
Result String - The outcome of the deployment.
- deployment
State String - Current status of the deployment.
- deployment
Time String - The time when the deployment finished.
- deployment
Id string - Deployment identifier.
- deployment
Logs stringUrl - Url to access repository action logs.
- deployment
Result string - The outcome of the deployment.
- deployment
State string - Current status of the deployment.
- deployment
Time 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.
- deployment
Id String - Deployment identifier.
- deployment
Logs StringUrl - Url to access repository action logs.
- deployment
Result String - The outcome of the deployment.
- deployment
State String - Current status of the deployment.
- deployment
Time String - The time when the deployment finished.
GitHubResourceInfoResponse
- App
Installation stringId - GitHub application installation id.
- App
Installation stringId - GitHub application installation id.
- app
Installation StringId - GitHub application installation id.
- app
Installation stringId - GitHub application installation id.
- app_
installation_ strid - GitHub application installation id.
- app
Installation StringId - GitHub application installation id.
RepositoryResourceInfoResponse
- Azure
Dev Pulumi.Ops Resource Info Azure Native. Security Insights. Inputs. Azure Dev Ops Resource Info Response - Resources created in Azure DevOps for this source-control.
- Git
Hub 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.
- 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
Webhook
Response - 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
Webhook
Response - 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
Webhook
Response - 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
Webhook
Response - The webhook object created for the source-control.
- azure
Dev Property MapOps Resource Info - Resources created in Azure DevOps for this source-control.
- git
Hub 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.
- Deployment
Logs stringUrl - Url to access repository action logs.
- Display
Url string - Display url of repository.
- Path
Mapping 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.
- Deployment
Logs stringUrl - Url to access repository action logs.
- Display
Url string - Display url of repository.
- Path
Mapping []ContentPath Map Response - Dictionary of source control content type and path mapping.
- Url string
- Url of repository.
- branch String
- Branch name of repository.
- deployment
Logs StringUrl - Url to access repository action logs.
- display
Url String - Display url of repository.
- path
Mapping List<ContentPath Map Response> - Dictionary of source control content type and path mapping.
- url String
- Url of repository.
- branch string
- Branch name of repository.
- deployment
Logs stringUrl - Url to access repository action logs.
- display
Url string - Display url of repository.
- path
Mapping 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.
- deployment
Logs StringUrl - Url to access repository action logs.
- display
Url String - Display url of repository.
- path
Mapping List<Property Map> - Dictionary of source control content type and path mapping.
- url String
- Url of repository.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WebhookResponse
- Rotate
Webhook boolSecret - A flag to instruct the backend service to rotate webhook secret.
- Webhook
Id string - Unique identifier for the webhook.
- Webhook
Secret stringUpdate Time - Time when the webhook secret was updated.
- Webhook
Url string - URL that gets invoked by the webhook.
- Rotate
Webhook boolSecret - A flag to instruct the backend service to rotate webhook secret.
- Webhook
Id string - Unique identifier for the webhook.
- Webhook
Secret stringUpdate Time - Time when the webhook secret was updated.
- Webhook
Url string - URL that gets invoked by the webhook.
- rotate
Webhook BooleanSecret - A flag to instruct the backend service to rotate webhook secret.
- webhook
Id String - Unique identifier for the webhook.
- webhook
Secret StringUpdate Time - Time when the webhook secret was updated.
- webhook
Url String - URL that gets invoked by the webhook.
- rotate
Webhook booleanSecret - A flag to instruct the backend service to rotate webhook secret.
- webhook
Id string - Unique identifier for the webhook.
- webhook
Secret stringUpdate Time - Time when the webhook secret was updated.
- webhook
Url 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.
- rotate
Webhook BooleanSecret - A flag to instruct the backend service to rotate webhook secret.
- webhook
Id String - Unique identifier for the webhook.
- webhook
Secret StringUpdate Time - Time when the webhook secret was updated.
- webhook
Url String - URL that gets invoked by the webhook.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0