@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.79 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSourceControl(args: GetSourceControlArgs, opts?: pulumi.InvokeOptions): Promise<GetSourceControlResult>;
export interface GetSourceControlArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Source control Id
*/
sourceControlId: string;
/**
* The name of the workspace.
*/
workspaceName: string;
}
/**
* Represents a SourceControl in Azure Security Insights.
*/
export interface GetSourceControlResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Array of source control content types.
*/
readonly contentTypes: string[];
/**
* A description of the source control
*/
readonly description?: string;
/**
* The display name of the source control
*/
readonly displayName: string;
/**
* Etag of the azure resource
*/
readonly etag?: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* Information regarding the latest deployment for the source control.
*/
readonly lastDeploymentInfo?: outputs.securityinsights.DeploymentInfoResponse;
/**
* The name of the resource
*/
readonly name: string;
/**
* The repository type of the source control
*/
readonly repoType: string;
/**
* Repository metadata.
*/
readonly repository: outputs.securityinsights.RepositoryResponse;
/**
* Information regarding the resources created in user's repository.
*/
readonly repositoryResourceInfo?: outputs.securityinsights.RepositoryResourceInfoResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.securityinsights.SystemDataResponse;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* The version number associated with the source control
*/
readonly version?: string;
}
/**
* 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](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSourceControlOutput(args: GetSourceControlOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSourceControlResult>;
export interface GetSourceControlOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Source control Id
*/
sourceControlId: pulumi.Input<string>;
/**
* The name of the workspace.
*/
workspaceName: pulumi.Input<string>;
}