azure-native.datamigration.getFile
Explore with Pulumi AI
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 for details.
Using getFile
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 getFile(args: GetFileArgs, opts?: InvokeOptions): Promise<GetFileResult>
function getFileOutput(args: GetFileOutputArgs, opts?: InvokeOptions): Output<GetFileResult>
def get_file(file_name: Optional[str] = None,
group_name: Optional[str] = None,
project_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFileResult
def get_file_output(file_name: Optional[pulumi.Input[str]] = None,
group_name: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFileResult]
func LookupFile(ctx *Context, args *LookupFileArgs, opts ...InvokeOption) (*LookupFileResult, error)
func LookupFileOutput(ctx *Context, args *LookupFileOutputArgs, opts ...InvokeOption) LookupFileResultOutput
> Note: This function is named LookupFile
in the Go SDK.
public static class GetFile
{
public static Task<GetFileResult> InvokeAsync(GetFileArgs args, InvokeOptions? opts = null)
public static Output<GetFileResult> Invoke(GetFileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFileResult> getFile(GetFileArgs args, InvokeOptions options)
public static Output<GetFileResult> getFile(GetFileArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:datamigration:getFile
arguments:
# arguments dictionary
The following arguments are supported:
- File
Name string - Name of the File
- Group
Name string - Name of the resource group
- Project
Name string - Name of the project
- Service
Name string - Name of the service
- File
Name string - Name of the File
- Group
Name string - Name of the resource group
- Project
Name string - Name of the project
- Service
Name string - Name of the service
- file
Name String - Name of the File
- group
Name String - Name of the resource group
- project
Name String - Name of the project
- service
Name String - Name of the service
- file
Name string - Name of the File
- group
Name string - Name of the resource group
- project
Name string - Name of the project
- service
Name string - Name of the service
- file_
name str - Name of the File
- group_
name str - Name of the resource group
- project_
name str - Name of the project
- service_
name str - Name of the service
- file
Name String - Name of the File
- group
Name String - Name of the resource group
- project
Name String - Name of the project
- service
Name String - Name of the service
getFile Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource ID.
- Name string
- Resource name.
- Properties
Pulumi.
Azure Native. Data Migration. Outputs. Project File Properties Response - Custom file properties
- System
Data Pulumi.Azure Native. Data Migration. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type.
- Etag string
- HTTP strong entity tag value. This is ignored if submitted.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource ID.
- Name string
- Resource name.
- Properties
Project
File Properties Response - Custom file properties
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- Resource type.
- Etag string
- HTTP strong entity tag value. This is ignored if submitted.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource ID.
- name String
- Resource name.
- properties
Project
File Properties Response - Custom file properties
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type.
- etag String
- HTTP strong entity tag value. This is ignored if submitted.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Resource ID.
- name string
- Resource name.
- properties
Project
File Properties Response - Custom file properties
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- Resource type.
- etag string
- HTTP strong entity tag value. This is ignored if submitted.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Resource ID.
- name str
- Resource name.
- properties
Project
File Properties Response - Custom file properties
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- Resource type.
- etag str
- HTTP strong entity tag value. This is ignored if submitted.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource ID.
- name String
- Resource name.
- properties Property Map
- Custom file properties
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- Resource type.
- etag String
- HTTP strong entity tag value. This is ignored if submitted.
Supporting Types
ProjectFilePropertiesResponse
- Last
Modified string - Modification DateTime.
- Size double
- File size.
- Extension string
- Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- File
Path string - Relative path of this file resource. This property can be set when creating or updating the file resource.
- Media
Type string - File content type. This property can be modified to reflect the file content type.
- Last
Modified string - Modification DateTime.
- Size float64
- File size.
- Extension string
- Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- File
Path string - Relative path of this file resource. This property can be set when creating or updating the file resource.
- Media
Type string - File content type. This property can be modified to reflect the file content type.
- last
Modified String - Modification DateTime.
- size Double
- File size.
- extension String
- Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path String - Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type String - File content type. This property can be modified to reflect the file content type.
- last
Modified string - Modification DateTime.
- size number
- File size.
- extension string
- Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path string - Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type string - File content type. This property can be modified to reflect the file content type.
- last_
modified str - Modification DateTime.
- size float
- File size.
- extension str
- Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file_
path str - Relative path of this file resource. This property can be set when creating or updating the file resource.
- media_
type str - File content type. This property can be modified to reflect the file content type.
- last
Modified String - Modification DateTime.
- size Number
- File size.
- extension String
- Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
- file
Path String - Relative path of this file resource. This property can be set when creating or updating the file resource.
- media
Type String - File content type. This property can be modified to reflect the file content type.
SystemDataResponse
- Created
At string - Created
By string - Created
By stringType - Last
Modified stringAt - Last
Modified stringBy - Last
Modified stringBy Type
- Created
At string - Created
By string - Created
By stringType - Last
Modified stringAt - Last
Modified stringBy - Last
Modified stringBy Type
- created
At String - created
By String - created
By StringType - last
Modified StringAt - last
Modified StringBy - last
Modified StringBy Type
- created
At string - created
By string - created
By stringType - last
Modified stringAt - last
Modified stringBy - last
Modified stringBy Type
- created_
at str - created_
by str - created_
by_ strtype - last_
modified_ strat - last_
modified_ strby - last_
modified_ strby_ type
- created
At String - created
By String - created
By StringType - last
Modified StringAt - last
Modified StringBy - last
Modified StringBy Type
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0