Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.ServiceCatalog.getPrivateApplicationPackages
Explore with Pulumi AI
This data source provides the list of Private Application Packages in Oracle Cloud Infrastructure Service Catalog service.
Lists the packages in the specified private application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPrivateApplicationPackages = oci.ServiceCatalog.getPrivateApplicationPackages({
    privateApplicationId: testPrivateApplication.id,
    displayName: privateApplicationPackageDisplayName,
    packageTypes: privateApplicationPackagePackageType,
    privateApplicationPackageId: testPrivateApplicationPackage.id,
});
import pulumi
import pulumi_oci as oci
test_private_application_packages = oci.ServiceCatalog.get_private_application_packages(private_application_id=test_private_application["id"],
    display_name=private_application_package_display_name,
    package_types=private_application_package_package_type,
    private_application_package_id=test_private_application_package["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/servicecatalog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicecatalog.GetPrivateApplicationPackages(ctx, &servicecatalog.GetPrivateApplicationPackagesArgs{
			PrivateApplicationId:        testPrivateApplication.Id,
			DisplayName:                 pulumi.StringRef(privateApplicationPackageDisplayName),
			PackageTypes:                privateApplicationPackagePackageType,
			PrivateApplicationPackageId: pulumi.StringRef(testPrivateApplicationPackage.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 testPrivateApplicationPackages = Oci.ServiceCatalog.GetPrivateApplicationPackages.Invoke(new()
    {
        PrivateApplicationId = testPrivateApplication.Id,
        DisplayName = privateApplicationPackageDisplayName,
        PackageTypes = privateApplicationPackagePackageType,
        PrivateApplicationPackageId = testPrivateApplicationPackage.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceCatalog.ServiceCatalogFunctions;
import com.pulumi.oci.ServiceCatalog.inputs.GetPrivateApplicationPackagesArgs;
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 testPrivateApplicationPackages = ServiceCatalogFunctions.getPrivateApplicationPackages(GetPrivateApplicationPackagesArgs.builder()
            .privateApplicationId(testPrivateApplication.id())
            .displayName(privateApplicationPackageDisplayName)
            .packageTypes(privateApplicationPackagePackageType)
            .privateApplicationPackageId(testPrivateApplicationPackage.id())
            .build());
    }
}
variables:
  testPrivateApplicationPackages:
    fn::invoke:
      function: oci:ServiceCatalog:getPrivateApplicationPackages
      arguments:
        privateApplicationId: ${testPrivateApplication.id}
        displayName: ${privateApplicationPackageDisplayName}
        packageTypes: ${privateApplicationPackagePackageType}
        privateApplicationPackageId: ${testPrivateApplicationPackage.id}
Using getPrivateApplicationPackages
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 getPrivateApplicationPackages(args: GetPrivateApplicationPackagesArgs, opts?: InvokeOptions): Promise<GetPrivateApplicationPackagesResult>
function getPrivateApplicationPackagesOutput(args: GetPrivateApplicationPackagesOutputArgs, opts?: InvokeOptions): Output<GetPrivateApplicationPackagesResult>def get_private_application_packages(display_name: Optional[str] = None,
                                     filters: Optional[Sequence[GetPrivateApplicationPackagesFilter]] = None,
                                     package_types: Optional[Sequence[str]] = None,
                                     private_application_id: Optional[str] = None,
                                     private_application_package_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetPrivateApplicationPackagesResult
def get_private_application_packages_output(display_name: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPrivateApplicationPackagesFilterArgs]]]] = None,
                                     package_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                     private_application_id: Optional[pulumi.Input[str]] = None,
                                     private_application_package_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetPrivateApplicationPackagesResult]func GetPrivateApplicationPackages(ctx *Context, args *GetPrivateApplicationPackagesArgs, opts ...InvokeOption) (*GetPrivateApplicationPackagesResult, error)
func GetPrivateApplicationPackagesOutput(ctx *Context, args *GetPrivateApplicationPackagesOutputArgs, opts ...InvokeOption) GetPrivateApplicationPackagesResultOutput> Note: This function is named GetPrivateApplicationPackages in the Go SDK.
public static class GetPrivateApplicationPackages 
{
    public static Task<GetPrivateApplicationPackagesResult> InvokeAsync(GetPrivateApplicationPackagesArgs args, InvokeOptions? opts = null)
    public static Output<GetPrivateApplicationPackagesResult> Invoke(GetPrivateApplicationPackagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivateApplicationPackagesResult> getPrivateApplicationPackages(GetPrivateApplicationPackagesArgs args, InvokeOptions options)
public static Output<GetPrivateApplicationPackagesResult> getPrivateApplicationPackages(GetPrivateApplicationPackagesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceCatalog/getPrivateApplicationPackages:getPrivateApplicationPackages
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PrivateApplication stringId 
- The unique identifier for the private application.
- DisplayName string
- Exact match name filter.
- Filters
List<GetPrivate Application Packages Filter> 
- PackageTypes List<string>
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- PrivateApplication stringPackage Id 
- The unique identifier for the private application package.
- PrivateApplication stringId 
- The unique identifier for the private application.
- DisplayName string
- Exact match name filter.
- Filters
[]GetPrivate Application Packages Filter 
- PackageTypes []string
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- PrivateApplication stringPackage Id 
- The unique identifier for the private application package.
- privateApplication StringId 
- The unique identifier for the private application.
- displayName String
- Exact match name filter.
- filters
List<GetPrivate Application Packages Filter> 
- packageTypes List<String>
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- privateApplication StringPackage Id 
- The unique identifier for the private application package.
- privateApplication stringId 
- The unique identifier for the private application.
- displayName string
- Exact match name filter.
- filters
GetPrivate Application Packages Filter[] 
- packageTypes string[]
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- privateApplication stringPackage Id 
- The unique identifier for the private application package.
- private_application_ strid 
- The unique identifier for the private application.
- display_name str
- Exact match name filter.
- filters
Sequence[GetPrivate Application Packages Filter] 
- package_types Sequence[str]
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- private_application_ strpackage_ id 
- The unique identifier for the private application package.
- privateApplication StringId 
- The unique identifier for the private application.
- displayName String
- Exact match name filter.
- filters List<Property Map>
- packageTypes List<String>
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- privateApplication StringPackage Id 
- The unique identifier for the private application package.
getPrivateApplicationPackages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- PrivateApplication stringId 
- The OCID of the private application where the package is hosted.
- PrivateApplication List<GetPackage Collections Private Application Packages Private Application Package Collection> 
- The list of private_application_package_collection.
- DisplayName string
- The display name of the package.
- Filters
List<GetPrivate Application Packages Filter> 
- PackageTypes List<string>
- The specified package's type.
- PrivateApplication stringPackage Id 
- Id string
- The provider-assigned unique ID for this managed resource.
- PrivateApplication stringId 
- The OCID of the private application where the package is hosted.
- PrivateApplication []GetPackage Collections Private Application Packages Private Application Package Collection 
- The list of private_application_package_collection.
- DisplayName string
- The display name of the package.
- Filters
[]GetPrivate Application Packages Filter 
- PackageTypes []string
- The specified package's type.
- PrivateApplication stringPackage Id 
- id String
- The provider-assigned unique ID for this managed resource.
- privateApplication StringId 
- The OCID of the private application where the package is hosted.
- privateApplication List<GetPackage Collections Private Application Packages Private Application Package Collection> 
- The list of private_application_package_collection.
- displayName String
- The display name of the package.
- filters
List<GetPrivate Application Packages Filter> 
- packageTypes List<String>
- The specified package's type.
- privateApplication StringPackage Id 
- id string
- The provider-assigned unique ID for this managed resource.
- privateApplication stringId 
- The OCID of the private application where the package is hosted.
- privateApplication GetPackage Collections Private Application Packages Private Application Package Collection[] 
- The list of private_application_package_collection.
- displayName string
- The display name of the package.
- filters
GetPrivate Application Packages Filter[] 
- packageTypes string[]
- The specified package's type.
- privateApplication stringPackage Id 
- id str
- The provider-assigned unique ID for this managed resource.
- private_application_ strid 
- The OCID of the private application where the package is hosted.
- private_application_ Sequence[Getpackage_ collections Private Application Packages Private Application Package Collection] 
- The list of private_application_package_collection.
- display_name str
- The display name of the package.
- filters
Sequence[GetPrivate Application Packages Filter] 
- package_types Sequence[str]
- The specified package's type.
- private_application_ strpackage_ id 
- id String
- The provider-assigned unique ID for this managed resource.
- privateApplication StringId 
- The OCID of the private application where the package is hosted.
- privateApplication List<Property Map>Package Collections 
- The list of private_application_package_collection.
- displayName String
- The display name of the package.
- filters List<Property Map>
- packageTypes List<String>
- The specified package's type.
- privateApplication StringPackage Id 
Supporting Types
GetPrivateApplicationPackagesFilter    
GetPrivateApplicationPackagesPrivateApplicationPackageCollection       
GetPrivateApplicationPackagesPrivateApplicationPackageCollectionItem        
- ContentUrl string
- DisplayName string
- Exact match name filter.
- Id string
- The OCID of the private application package.
- MimeType string
- PackageType string
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- PrivateApplication stringId 
- The unique identifier for the private application.
- TimeCreated string
- The date and time the private application package was created, expressed in RFC 3339 timestamp format. Example: 2021-05-27T21:10:29.600Z
- Version string
- The package version.
- ContentUrl string
- DisplayName string
- Exact match name filter.
- Id string
- The OCID of the private application package.
- MimeType string
- PackageType string
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- PrivateApplication stringId 
- The unique identifier for the private application.
- TimeCreated string
- The date and time the private application package was created, expressed in RFC 3339 timestamp format. Example: 2021-05-27T21:10:29.600Z
- Version string
- The package version.
- contentUrl String
- displayName String
- Exact match name filter.
- id String
- The OCID of the private application package.
- mimeType String
- packageType String
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- privateApplication StringId 
- The unique identifier for the private application.
- timeCreated String
- The date and time the private application package was created, expressed in RFC 3339 timestamp format. Example: 2021-05-27T21:10:29.600Z
- version String
- The package version.
- contentUrl string
- displayName string
- Exact match name filter.
- id string
- The OCID of the private application package.
- mimeType string
- packageType string
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- privateApplication stringId 
- The unique identifier for the private application.
- timeCreated string
- The date and time the private application package was created, expressed in RFC 3339 timestamp format. Example: 2021-05-27T21:10:29.600Z
- version string
- The package version.
- content_url str
- display_name str
- Exact match name filter.
- id str
- The OCID of the private application package.
- mime_type str
- package_type str
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- private_application_ strid 
- The unique identifier for the private application.
- time_created str
- The date and time the private application package was created, expressed in RFC 3339 timestamp format. Example: 2021-05-27T21:10:29.600Z
- version str
- The package version.
- contentUrl String
- displayName String
- Exact match name filter.
- id String
- The OCID of the private application package.
- mimeType String
- packageType String
- Name of the package type. If multiple package types are provided, then any resource with one or more matching package types will be returned.
- privateApplication StringId 
- The unique identifier for the private application.
- timeCreated String
- The date and time the private application package was created, expressed in RFC 3339 timestamp format. Example: 2021-05-27T21:10:29.600Z
- version String
- The package version.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.