1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getAppCatalogListingResourceVersions
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getAppCatalogListingResourceVersions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of App Catalog Listing Resource Versions in Oracle Cloud Infrastructure Core service.

    Gets all resource versions for a particular listing.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAppCatalogListingResourceVersions = oci.Core.getAppCatalogListingResourceVersions({
        listingId: testListing.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_app_catalog_listing_resource_versions = oci.Core.get_app_catalog_listing_resource_versions(listing_id=test_listing["id"])
    
    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.GetAppCatalogListingResourceVersions(ctx, &core.GetAppCatalogListingResourceVersionsArgs{
    			ListingId: testListing.Id,
    		}, 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 testAppCatalogListingResourceVersions = Oci.Core.GetAppCatalogListingResourceVersions.Invoke(new()
        {
            ListingId = testListing.Id,
        });
    
    });
    
    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.GetAppCatalogListingResourceVersionsArgs;
    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 testAppCatalogListingResourceVersions = CoreFunctions.getAppCatalogListingResourceVersions(GetAppCatalogListingResourceVersionsArgs.builder()
                .listingId(testListing.id())
                .build());
    
        }
    }
    
    variables:
      testAppCatalogListingResourceVersions:
        fn::invoke:
          Function: oci:Core:getAppCatalogListingResourceVersions
          Arguments:
            listingId: ${testListing.id}
    

    Using getAppCatalogListingResourceVersions

    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 getAppCatalogListingResourceVersions(args: GetAppCatalogListingResourceVersionsArgs, opts?: InvokeOptions): Promise<GetAppCatalogListingResourceVersionsResult>
    function getAppCatalogListingResourceVersionsOutput(args: GetAppCatalogListingResourceVersionsOutputArgs, opts?: InvokeOptions): Output<GetAppCatalogListingResourceVersionsResult>
    def get_app_catalog_listing_resource_versions(filters: Optional[Sequence[_core.GetAppCatalogListingResourceVersionsFilter]] = None,
                                                  listing_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetAppCatalogListingResourceVersionsResult
    def get_app_catalog_listing_resource_versions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetAppCatalogListingResourceVersionsFilterArgs]]]] = None,
                                                  listing_id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetAppCatalogListingResourceVersionsResult]
    func GetAppCatalogListingResourceVersions(ctx *Context, args *GetAppCatalogListingResourceVersionsArgs, opts ...InvokeOption) (*GetAppCatalogListingResourceVersionsResult, error)
    func GetAppCatalogListingResourceVersionsOutput(ctx *Context, args *GetAppCatalogListingResourceVersionsOutputArgs, opts ...InvokeOption) GetAppCatalogListingResourceVersionsResultOutput

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

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

    The following arguments are supported:

    listingId String
    The OCID of the listing.
    filters List<Property Map>

    getAppCatalogListingResourceVersions Result

    The following output properties are available:

    AppCatalogListingResourceVersions List<GetAppCatalogListingResourceVersionsAppCatalogListingResourceVersion>
    The list of app_catalog_listing_resource_versions.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    The OCID of the listing this resource version belongs to.
    Filters List<GetAppCatalogListingResourceVersionsFilter>
    AppCatalogListingResourceVersions []GetAppCatalogListingResourceVersionsAppCatalogListingResourceVersion
    The list of app_catalog_listing_resource_versions.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    The OCID of the listing this resource version belongs to.
    Filters []GetAppCatalogListingResourceVersionsFilter
    appCatalogListingResourceVersions List<GetAppCatalogListingResourceVersionsAppCatalogListingResourceVersion>
    The list of app_catalog_listing_resource_versions.
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    The OCID of the listing this resource version belongs to.
    filters List<GetAppCatalogListingResourceVersionsFilter>
    appCatalogListingResourceVersions GetAppCatalogListingResourceVersionsAppCatalogListingResourceVersion[]
    The list of app_catalog_listing_resource_versions.
    id string
    The provider-assigned unique ID for this managed resource.
    listingId string
    The OCID of the listing this resource version belongs to.
    filters GetAppCatalogListingResourceVersionsFilter[]
    app_catalog_listing_resource_versions Sequence[core.GetAppCatalogListingResourceVersionsAppCatalogListingResourceVersion]
    The list of app_catalog_listing_resource_versions.
    id str
    The provider-assigned unique ID for this managed resource.
    listing_id str
    The OCID of the listing this resource version belongs to.
    filters Sequence[core.GetAppCatalogListingResourceVersionsFilter]
    appCatalogListingResourceVersions List<Property Map>
    The list of app_catalog_listing_resource_versions.
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    The OCID of the listing this resource version belongs to.
    filters List<Property Map>

    Supporting Types

    GetAppCatalogListingResourceVersionsAppCatalogListingResourceVersion

    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.
    ListingId string
    The OCID of the listing.
    ListingResourceId string
    OCID of the listing resource.
    ListingResourceVersion string
    Resource Version.
    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.
    ListingId string
    The OCID of the listing.
    ListingResourceId string
    OCID of the listing resource.
    ListingResourceVersion string
    Resource Version.
    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.
    listingId String
    The OCID of the listing.
    listingResourceId String
    OCID of the listing resource.
    listingResourceVersion String
    Resource Version.
    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.
    listingId string
    The OCID of the listing.
    listingResourceId string
    OCID of the listing resource.
    listingResourceVersion string
    Resource Version.
    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.
    listing_id str
    The OCID of the listing.
    listing_resource_id str
    OCID of the listing resource.
    listing_resource_version str
    Resource Version.
    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.
    listingId String
    The OCID of the listing.
    listingResourceId String
    OCID of the listing resource.
    listingResourceVersion String
    Resource Version.
    timePublished String
    Date and time the listing resource version was published, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z

    GetAppCatalogListingResourceVersionsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi