@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Description for Gets the source control configuration of an app.
*
* Uses Azure REST API version 2024-04-01.
*
* Other available API versions: 2016-08-01, 2018-02-01, 2018-11-01, 2019-08-01, 2020-06-01, 2020-09-01, 2020-10-01, 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01, 2024-11-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native web [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getWebAppSourceControlSlot(args: GetWebAppSourceControlSlotArgs, opts?: pulumi.InvokeOptions): Promise<GetWebAppSourceControlSlotResult>;
export interface GetWebAppSourceControlSlotArgs {
/**
* Name of the app.
*/
name: string;
/**
* Name of the resource group to which the resource belongs.
*/
resourceGroupName: string;
/**
* Name of the deployment slot. If a slot is not specified, the API will get the source control configuration for the production slot.
*/
slot: string;
}
/**
* Source control configuration for an app.
*/
export interface GetWebAppSourceControlSlotResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Name of branch to use for deployment.
*/
readonly branch?: string;
/**
* <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
*/
readonly deploymentRollbackEnabled?: boolean;
/**
* If GitHub Action is selected, than the associated configuration.
*/
readonly gitHubActionConfiguration?: outputs.web.GitHubActionConfigurationResponse;
/**
* Resource Id.
*/
readonly id: string;
/**
* <code>true</code> if this is deployed via GitHub action.
*/
readonly isGitHubAction?: boolean;
/**
* <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
*/
readonly isManualIntegration?: boolean;
/**
* <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
*/
readonly isMercurial?: boolean;
/**
* Kind of resource.
*/
readonly kind?: string;
/**
* Resource Name.
*/
readonly name: string;
/**
* Repository or source control URL.
*/
readonly repoUrl?: string;
/**
* Resource type.
*/
readonly type: string;
}
/**
* Description for Gets the source control configuration of an app.
*
* Uses Azure REST API version 2024-04-01.
*
* Other available API versions: 2016-08-01, 2018-02-01, 2018-11-01, 2019-08-01, 2020-06-01, 2020-09-01, 2020-10-01, 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01, 2024-11-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native web [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getWebAppSourceControlSlotOutput(args: GetWebAppSourceControlSlotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWebAppSourceControlSlotResult>;
export interface GetWebAppSourceControlSlotOutputArgs {
/**
* Name of the app.
*/
name: pulumi.Input<string>;
/**
* Name of the resource group to which the resource belongs.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the deployment slot. If a slot is not specified, the API will get the source control configuration for the production slot.
*/
slot: pulumi.Input<string>;
}