1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudBridge
  5. getApplianceImage
Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi

oci.CloudBridge.getApplianceImage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi

    This data source provides details about a specific Appliance Image resource in Oracle Cloud Infrastructure Cloud Bridge service.

    Returns a list of Appliance Images.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testApplianceImage = oci.CloudBridge.getApplianceImage({
        compartmentId: compartmentId,
        displayName: applianceImageDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_appliance_image = oci.CloudBridge.get_appliance_image(compartment_id=compartment_id,
        display_name=appliance_image_display_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudBridge"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudBridge.GetApplianceImage(ctx, &cloudbridge.GetApplianceImageArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(applianceImageDisplayName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testApplianceImage = Oci.CloudBridge.GetApplianceImage.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = applianceImageDisplayName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudBridge.CloudBridgeFunctions;
    import com.pulumi.oci.CloudBridge.inputs.GetApplianceImageArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testApplianceImage = CloudBridgeFunctions.getApplianceImage(GetApplianceImageArgs.builder()
                .compartmentId(compartmentId)
                .displayName(applianceImageDisplayName)
                .build());
    
        }
    }
    
    variables:
      testApplianceImage:
        fn::invoke:
          Function: oci:CloudBridge:getApplianceImage
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${applianceImageDisplayName}
    

    Using getApplianceImage

    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 getApplianceImage(args: GetApplianceImageArgs, opts?: InvokeOptions): Promise<GetApplianceImageResult>
    function getApplianceImageOutput(args: GetApplianceImageOutputArgs, opts?: InvokeOptions): Output<GetApplianceImageResult>
    def get_appliance_image(compartment_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetApplianceImageResult
    def get_appliance_image_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            display_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetApplianceImageResult]
    func GetApplianceImage(ctx *Context, args *GetApplianceImageArgs, opts ...InvokeOption) (*GetApplianceImageResult, error)
    func GetApplianceImageOutput(ctx *Context, args *GetApplianceImageOutputArgs, opts ...InvokeOption) GetApplianceImageResultOutput

    > Note: This function is named GetApplianceImage in the Go SDK.

    public static class GetApplianceImage 
    {
        public static Task<GetApplianceImageResult> InvokeAsync(GetApplianceImageArgs args, InvokeOptions? opts = null)
        public static Output<GetApplianceImageResult> Invoke(GetApplianceImageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplianceImageResult> getApplianceImage(GetApplianceImageArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudBridge/getApplianceImage:getApplianceImage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.

    getApplianceImage Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetApplianceImageItem>
    List of appliance images.
    DisplayName string
    The name of the image to be displayed.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetApplianceImageItem
    List of appliance images.
    DisplayName string
    The name of the image to be displayed.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetApplianceImageItem>
    List of appliance images.
    displayName String
    The name of the image to be displayed.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    items GetApplianceImageItem[]
    List of appliance images.
    displayName string
    The name of the image to be displayed.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[cloudbridge.GetApplianceImageItem]
    List of appliance images.
    display_name str
    The name of the image to be displayed.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of appliance images.
    displayName String
    The name of the image to be displayed.

    Supporting Types

    GetApplianceImageItem

    Checksum string
    The checksum of the image file.
    DefinedTags Dictionary<string, string>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    DownloadUrl string
    The URL from which the appliance image can be downloaded.
    FileName string
    The name of the appliance Image file.
    Format string
    The file format of the image file.
    FreeformTags Dictionary<string, string>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    Unique identifier that is immutable on creation.
    Platform string
    The virtualization platform that the image file supports.
    SizeInMbs string
    The size of the image file in megabytes.
    State string
    The current state of the appliance image.
    TimeCreated string
    The time when the appliance image was created.An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the appliance image was last updated. An RFC3339 formatted datetime string.
    Version string
    The version of the image file.
    Checksum string
    The checksum of the image file.
    DefinedTags map[string]string
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    DownloadUrl string
    The URL from which the appliance image can be downloaded.
    FileName string
    The name of the appliance Image file.
    Format string
    The file format of the image file.
    FreeformTags map[string]string
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    Unique identifier that is immutable on creation.
    Platform string
    The virtualization platform that the image file supports.
    SizeInMbs string
    The size of the image file in megabytes.
    State string
    The current state of the appliance image.
    TimeCreated string
    The time when the appliance image was created.An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the appliance image was last updated. An RFC3339 formatted datetime string.
    Version string
    The version of the image file.
    checksum String
    The checksum of the image file.
    definedTags Map<String,String>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A filter to return only resources that match the entire display name given.
    downloadUrl String
    The URL from which the appliance image can be downloaded.
    fileName String
    The name of the appliance Image file.
    format String
    The file format of the image file.
    freeformTags Map<String,String>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    Unique identifier that is immutable on creation.
    platform String
    The virtualization platform that the image file supports.
    sizeInMbs String
    The size of the image file in megabytes.
    state String
    The current state of the appliance image.
    timeCreated String
    The time when the appliance image was created.An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the appliance image was last updated. An RFC3339 formatted datetime string.
    version String
    The version of the image file.
    checksum string
    The checksum of the image file.
    definedTags {[key: string]: string}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A filter to return only resources that match the entire display name given.
    downloadUrl string
    The URL from which the appliance image can be downloaded.
    fileName string
    The name of the appliance Image file.
    format string
    The file format of the image file.
    freeformTags {[key: string]: string}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    Unique identifier that is immutable on creation.
    platform string
    The virtualization platform that the image file supports.
    sizeInMbs string
    The size of the image file in megabytes.
    state string
    The current state of the appliance image.
    timeCreated string
    The time when the appliance image was created.An RFC3339 formatted datetime string.
    timeUpdated string
    The time when the appliance image was last updated. An RFC3339 formatted datetime string.
    version string
    The version of the image file.
    checksum str
    The checksum of the image file.
    defined_tags Mapping[str, str]
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A filter to return only resources that match the entire display name given.
    download_url str
    The URL from which the appliance image can be downloaded.
    file_name str
    The name of the appliance Image file.
    format str
    The file format of the image file.
    freeform_tags Mapping[str, str]
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    Unique identifier that is immutable on creation.
    platform str
    The virtualization platform that the image file supports.
    size_in_mbs str
    The size of the image file in megabytes.
    state str
    The current state of the appliance image.
    time_created str
    The time when the appliance image was created.An RFC3339 formatted datetime string.
    time_updated str
    The time when the appliance image was last updated. An RFC3339 formatted datetime string.
    version str
    The version of the image file.
    checksum String
    The checksum of the image file.
    definedTags Map<String>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A filter to return only resources that match the entire display name given.
    downloadUrl String
    The URL from which the appliance image can be downloaded.
    fileName String
    The name of the appliance Image file.
    format String
    The file format of the image file.
    freeformTags Map<String>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    Unique identifier that is immutable on creation.
    platform String
    The virtualization platform that the image file supports.
    sizeInMbs String
    The size of the image file in megabytes.
    state String
    The current state of the appliance image.
    timeCreated String
    The time when the appliance image was created.An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the appliance image was last updated. An RFC3339 formatted datetime string.
    version String
    The version of the image file.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.15.0 published on Thursday, Oct 31, 2024 by Pulumi