1. Packages
  2. Azure Native v1
  3. API Docs
  4. datamigration
  5. getFile
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.datamigration.getFile

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file. API Version: 2018-07-15-preview.

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:datamigration:getFile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FileName string
    Name of the File
    GroupName string
    Name of the resource group
    ProjectName string
    Name of the project
    ServiceName string
    Name of the service
    FileName string
    Name of the File
    GroupName string
    Name of the resource group
    ProjectName string
    Name of the project
    ServiceName string
    Name of the service
    fileName String
    Name of the File
    groupName String
    Name of the resource group
    projectName String
    Name of the project
    serviceName String
    Name of the service
    fileName string
    Name of the File
    groupName string
    Name of the resource group
    projectName string
    Name of the project
    serviceName 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
    fileName String
    Name of the File
    groupName String
    Name of the resource group
    projectName String
    Name of the project
    serviceName String
    Name of the service

    getFile Result

    The following output properties are available:

    Id string
    Resource ID.
    Name string
    Resource name.
    Properties Pulumi.AzureNative.DataMigration.Outputs.ProjectFilePropertiesResponse
    Custom file properties
    Type string
    Resource type.
    Etag string
    HTTP strong entity tag value. This is ignored if submitted.
    Id string
    Resource ID.
    Name string
    Resource name.
    Properties ProjectFilePropertiesResponse
    Custom file properties
    Type string
    Resource type.
    Etag string
    HTTP strong entity tag value. This is ignored if submitted.
    id String
    Resource ID.
    name String
    Resource name.
    properties ProjectFilePropertiesResponse
    Custom file properties
    type String
    Resource type.
    etag String
    HTTP strong entity tag value. This is ignored if submitted.
    id string
    Resource ID.
    name string
    Resource name.
    properties ProjectFilePropertiesResponse
    Custom file properties
    type string
    Resource type.
    etag string
    HTTP strong entity tag value. This is ignored if submitted.
    id str
    Resource ID.
    name str
    Resource name.
    properties ProjectFilePropertiesResponse
    Custom file properties
    type str
    Resource type.
    etag str
    HTTP strong entity tag value. This is ignored if submitted.
    id String
    Resource ID.
    name String
    Resource name.
    properties Property Map
    Custom file properties
    type String
    Resource type.
    etag String
    HTTP strong entity tag value. This is ignored if submitted.

    Supporting Types

    ProjectFilePropertiesResponse

    LastModified 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.
    FilePath string
    Relative path of this file resource. This property can be set when creating or updating the file resource.
    MediaType string
    File content type. This property can be modified to reflect the file content type.
    LastModified 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.
    FilePath string
    Relative path of this file resource. This property can be set when creating or updating the file resource.
    MediaType string
    File content type. This property can be modified to reflect the file content type.
    lastModified 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.
    filePath String
    Relative path of this file resource. This property can be set when creating or updating the file resource.
    mediaType String
    File content type. This property can be modified to reflect the file content type.
    lastModified 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.
    filePath string
    Relative path of this file resource. This property can be set when creating or updating the file resource.
    mediaType 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.
    lastModified 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.
    filePath String
    Relative path of this file resource. This property can be set when creating or updating the file resource.
    mediaType String
    File content type. This property can be modified to reflect the file content type.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi