1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getAppCatalogListingResourceVersion
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Core.getAppCatalogListingResourceVersion

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testAppCatalogListingResourceVersion:
    fn::invoke:
      function: oci:Core:getAppCatalogListingResourceVersion
      arguments:
        listingId: ${testListing.id}
        resourceVersion: ${appCatalogListingResourceVersionResourceVersion}
Copy

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>
Copy
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]
Copy
func GetAppCatalogListingResourceVersion(ctx *Context, args *GetAppCatalogListingResourceVersionArgs, opts ...InvokeOption) (*GetAppCatalogListingResourceVersionResult, error)
func GetAppCatalogListingResourceVersionOutput(ctx *Context, args *GetAppCatalogListingResourceVersionOutputArgs, opts ...InvokeOption) GetAppCatalogListingResourceVersionResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAppCatalogListingResourceVersionResult> getAppCatalogListingResourceVersion(GetAppCatalogListingResourceVersionArgs args, InvokeOptions options)
public static Output<GetAppCatalogListingResourceVersionResult> getAppCatalogListingResourceVersion(GetAppCatalogListingResourceVersionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getAppCatalogListingResourceVersion:getAppCatalogListingResourceVersion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ListingId This property is required. string
The OCID of the listing.
ResourceVersion This property is required. string
Listing Resource Version.
ListingId This property is required. string
The OCID of the listing.
ResourceVersion This property is required. string
Listing Resource Version.
listingId This property is required. String
The OCID of the listing.
resourceVersion This property is required. String
Listing Resource Version.
listingId This property is required. string
The OCID of the listing.
resourceVersion This property is required. string
Listing Resource Version.
listing_id This property is required. str
The OCID of the listing.
resource_version This property is required. str
Listing Resource Version.
listingId This property is required. String
The OCID of the listing.
resourceVersion This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi