@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.93 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file.
*
* Uses Azure REST API version 2023-07-15-preview.
*
* Other available API versions: 2021-06-30, 2021-10-30-preview, 2022-01-30-preview, 2022-03-30-preview, 2025-03-15-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native datamigration [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getFile(args: GetFileArgs, opts?: pulumi.InvokeOptions): Promise<GetFileResult>;
export interface GetFileArgs {
/**
* Name of the File
*/
fileName: string;
/**
* Name of the resource group
*/
groupName: string;
/**
* Name of the project
*/
projectName: string;
/**
* Name of the service
*/
serviceName: string;
}
/**
* A file resource
*/
export interface GetFileResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* HTTP strong entity tag value. This is ignored if submitted.
*/
readonly etag?: string;
/**
* Resource ID.
*/
readonly id: string;
/**
* Resource name.
*/
readonly name: string;
/**
* Custom file properties
*/
readonly properties: outputs.datamigration.ProjectFilePropertiesResponse;
/**
* Metadata pertaining to creation and last modification of the resource.
*/
readonly systemData: outputs.datamigration.SystemDataResponse;
/**
* Resource type.
*/
readonly type: string;
}
/**
* The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file.
*
* Uses Azure REST API version 2023-07-15-preview.
*
* Other available API versions: 2021-06-30, 2021-10-30-preview, 2022-01-30-preview, 2022-03-30-preview, 2025-03-15-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native datamigration [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getFileOutput(args: GetFileOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFileResult>;
export interface GetFileOutputArgs {
/**
* Name of the File
*/
fileName: pulumi.Input<string>;
/**
* Name of the resource group
*/
groupName: pulumi.Input<string>;
/**
* Name of the project
*/
projectName: pulumi.Input<string>;
/**
* Name of the service
*/
serviceName: pulumi.Input<string>;
}