1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getAppCatalogListingResourceVersion
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Core.getAppCatalogListingResourceVersion

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides details about a specific App Catalog Listing Resource Version resource in Oracle Cloud Infrastructure Core service.

    Gets the specified listing resource version.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAppCatalogListingResourceVersion = oci.Core.getAppCatalogListingResourceVersion({
        listingId: testListing.id,
        resourceVersion: appCatalogListingResourceVersionResourceVersion,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_app_catalog_listing_resource_version = oci.Core.get_app_catalog_listing_resource_version(listing_id=test_listing["id"],
        resource_version=app_catalog_listing_resource_version_resource_version)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetAppCatalogListingResourceVersion(ctx, &core.GetAppCatalogListingResourceVersionArgs{
    			ListingId:       testListing.Id,
    			ResourceVersion: appCatalogListingResourceVersionResourceVersion,
    		}, 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 testAppCatalogListingResourceVersion = Oci.Core.GetAppCatalogListingResourceVersion.Invoke(new()
        {
            ListingId = testListing.Id,
            ResourceVersion = appCatalogListingResourceVersionResourceVersion,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetAppCatalogListingResourceVersionArgs;
    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 testAppCatalogListingResourceVersion = CoreFunctions.getAppCatalogListingResourceVersion(GetAppCatalogListingResourceVersionArgs.builder()
                .listingId(testListing.id())
                .resourceVersion(appCatalogListingResourceVersionResourceVersion)
                .build());
    
        }
    }
    
    variables:
      testAppCatalogListingResourceVersion:
        fn::invoke:
          Function: oci:Core:getAppCatalogListingResourceVersion
          Arguments:
            listingId: ${testListing.id}
            resourceVersion: ${appCatalogListingResourceVersionResourceVersion}
    

    Using getAppCatalogListingResourceVersion

    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 getAppCatalogListingResourceVersion(args: GetAppCatalogListingResourceVersionArgs, opts?: InvokeOptions): Promise<GetAppCatalogListingResourceVersionResult>
    function getAppCatalogListingResourceVersionOutput(args: GetAppCatalogListingResourceVersionOutputArgs, opts?: InvokeOptions): Output<GetAppCatalogListingResourceVersionResult>
    def get_app_catalog_listing_resource_version(listing_id: Optional[str] = None,
                                                 resource_version: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetAppCatalogListingResourceVersionResult
    def get_app_catalog_listing_resource_version_output(listing_id: Optional[pulumi.Input[str]] = None,
                                                 resource_version: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetAppCatalogListingResourceVersionResult]
    func GetAppCatalogListingResourceVersion(ctx *Context, args *GetAppCatalogListingResourceVersionArgs, opts ...InvokeOption) (*GetAppCatalogListingResourceVersionResult, error)
    func GetAppCatalogListingResourceVersionOutput(ctx *Context, args *GetAppCatalogListingResourceVersionOutputArgs, opts ...InvokeOption) GetAppCatalogListingResourceVersionResultOutput

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

    public static class GetAppCatalogListingResourceVersion 
    {
        public static Task<GetAppCatalogListingResourceVersionResult> InvokeAsync(GetAppCatalogListingResourceVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetAppCatalogListingResourceVersionResult> Invoke(GetAppCatalogListingResourceVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAppCatalogListingResourceVersionResult> getAppCatalogListingResourceVersion(GetAppCatalogListingResourceVersionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getAppCatalogListingResourceVersion:getAppCatalogListingResourceVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ListingId string
    The OCID of the listing.
    ResourceVersion string
    Listing Resource Version.
    ListingId string
    The OCID of the listing.
    ResourceVersion string
    Listing Resource Version.
    listingId String
    The OCID of the listing.
    resourceVersion String
    Listing Resource Version.
    listingId string
    The OCID of the listing.
    resourceVersion string
    Listing Resource Version.
    listing_id str
    The OCID of the listing.
    resource_version str
    Listing Resource Version.
    listingId String
    The OCID of the listing.
    resourceVersion String
    Listing Resource Version.

    getAppCatalogListingResourceVersion Result

    The following output properties are available:

    AccessiblePorts List<int>
    List of accessible ports for instances launched with this listing resource version.
    AllowedActions List<string>
    Allowed actions for the listing resource.
    AvailableRegions List<string>
    List of regions that this listing resource version is available.
    CompatibleShapes List<string>
    Array of shapes compatible with this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    The OCID of the listing this resource version belongs to.
    ListingResourceId string
    OCID of the listing resource.
    ListingResourceVersion string
    Resource Version.
    ResourceVersion string
    TimePublished string
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    AccessiblePorts []int
    List of accessible ports for instances launched with this listing resource version.
    AllowedActions []string
    Allowed actions for the listing resource.
    AvailableRegions []string
    List of regions that this listing resource version is available.
    CompatibleShapes []string
    Array of shapes compatible with this resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    The OCID of the listing this resource version belongs to.
    ListingResourceId string
    OCID of the listing resource.
    ListingResourceVersion string
    Resource Version.
    ResourceVersion string
    TimePublished string
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    accessiblePorts List<Integer>
    List of accessible ports for instances launched with this listing resource version.
    allowedActions List<String>
    Allowed actions for the listing resource.
    availableRegions List<String>
    List of regions that this listing resource version is available.
    compatibleShapes List<String>
    Array of shapes compatible with this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    The OCID of the listing this resource version belongs to.
    listingResourceId String
    OCID of the listing resource.
    listingResourceVersion String
    Resource Version.
    resourceVersion String
    timePublished String
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    accessiblePorts number[]
    List of accessible ports for instances launched with this listing resource version.
    allowedActions string[]
    Allowed actions for the listing resource.
    availableRegions string[]
    List of regions that this listing resource version is available.
    compatibleShapes string[]
    Array of shapes compatible with this resource.
    id string
    The provider-assigned unique ID for this managed resource.
    listingId string
    The OCID of the listing this resource version belongs to.
    listingResourceId string
    OCID of the listing resource.
    listingResourceVersion string
    Resource Version.
    resourceVersion string
    timePublished string
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    accessible_ports Sequence[int]
    List of accessible ports for instances launched with this listing resource version.
    allowed_actions Sequence[str]
    Allowed actions for the listing resource.
    available_regions Sequence[str]
    List of regions that this listing resource version is available.
    compatible_shapes Sequence[str]
    Array of shapes compatible with this resource.
    id str
    The provider-assigned unique ID for this managed resource.
    listing_id str
    The OCID of the listing this resource version belongs to.
    listing_resource_id str
    OCID of the listing resource.
    listing_resource_version str
    Resource Version.
    resource_version str
    time_published str
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    accessiblePorts List<Number>
    List of accessible ports for instances launched with this listing resource version.
    allowedActions List<String>
    Allowed actions for the listing resource.
    availableRegions List<String>
    List of regions that this listing resource version is available.
    compatibleShapes List<String>
    Array of shapes compatible with this resource.
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    The OCID of the listing this resource version belongs to.
    listingResourceId String
    OCID of the listing resource.
    listingResourceVersion String
    Resource Version.
    resourceVersion String
    timePublished String
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi