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

oci.ServiceCatalog.getPrivateApplicationPackages

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 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[_servicecatalog.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[_servicecatalog.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceCatalog/getPrivateApplicationPackages:getPrivateApplicationPackages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PrivateApplicationId string
    The unique identifier for the private application.
    DisplayName string
    Exact match name filter.
    Filters List<GetPrivateApplicationPackagesFilter>
    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.
    PrivateApplicationPackageId string
    The unique identifier for the private application package.
    PrivateApplicationId string
    The unique identifier for the private application.
    DisplayName string
    Exact match name filter.
    Filters []GetPrivateApplicationPackagesFilter
    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.
    PrivateApplicationPackageId string
    The unique identifier for the private application package.
    privateApplicationId String
    The unique identifier for the private application.
    displayName String
    Exact match name filter.
    filters List<GetPrivateApplicationPackagesFilter>
    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.
    privateApplicationPackageId String
    The unique identifier for the private application package.
    privateApplicationId string
    The unique identifier for the private application.
    displayName string
    Exact match name filter.
    filters GetPrivateApplicationPackagesFilter[]
    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.
    privateApplicationPackageId string
    The unique identifier for the private application package.
    private_application_id str
    The unique identifier for the private application.
    display_name str
    Exact match name filter.
    filters Sequence[servicecatalog.GetPrivateApplicationPackagesFilter]
    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_package_id str
    The unique identifier for the private application package.
    privateApplicationId String
    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.
    privateApplicationPackageId String
    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.
    PrivateApplicationId string
    The OCID of the private application where the package is hosted.
    PrivateApplicationPackageCollections List<GetPrivateApplicationPackagesPrivateApplicationPackageCollection>
    The list of private_application_package_collection.
    DisplayName string
    The display name of the package.
    Filters List<GetPrivateApplicationPackagesFilter>
    PackageTypes List<string>
    The specified package's type.
    PrivateApplicationPackageId string
    Id string
    The provider-assigned unique ID for this managed resource.
    PrivateApplicationId string
    The OCID of the private application where the package is hosted.
    PrivateApplicationPackageCollections []GetPrivateApplicationPackagesPrivateApplicationPackageCollection
    The list of private_application_package_collection.
    DisplayName string
    The display name of the package.
    Filters []GetPrivateApplicationPackagesFilter
    PackageTypes []string
    The specified package's type.
    PrivateApplicationPackageId string
    id String
    The provider-assigned unique ID for this managed resource.
    privateApplicationId String
    The OCID of the private application where the package is hosted.
    privateApplicationPackageCollections List<GetPrivateApplicationPackagesPrivateApplicationPackageCollection>
    The list of private_application_package_collection.
    displayName String
    The display name of the package.
    filters List<GetPrivateApplicationPackagesFilter>
    packageTypes List<String>
    The specified package's type.
    privateApplicationPackageId String
    id string
    The provider-assigned unique ID for this managed resource.
    privateApplicationId string
    The OCID of the private application where the package is hosted.
    privateApplicationPackageCollections GetPrivateApplicationPackagesPrivateApplicationPackageCollection[]
    The list of private_application_package_collection.
    displayName string
    The display name of the package.
    filters GetPrivateApplicationPackagesFilter[]
    packageTypes string[]
    The specified package's type.
    privateApplicationPackageId string
    id str
    The provider-assigned unique ID for this managed resource.
    private_application_id str
    The OCID of the private application where the package is hosted.
    private_application_package_collections Sequence[servicecatalog.GetPrivateApplicationPackagesPrivateApplicationPackageCollection]
    The list of private_application_package_collection.
    display_name str
    The display name of the package.
    filters Sequence[servicecatalog.GetPrivateApplicationPackagesFilter]
    package_types Sequence[str]
    The specified package's type.
    private_application_package_id str
    id String
    The provider-assigned unique ID for this managed resource.
    privateApplicationId String
    The OCID of the private application where the package is hosted.
    privateApplicationPackageCollections List<Property Map>
    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.
    privateApplicationPackageId String

    Supporting Types

    GetPrivateApplicationPackagesFilter

    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

    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.
    PrivateApplicationId string
    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.
    PrivateApplicationId string
    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.
    privateApplicationId String
    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.
    privateApplicationId string
    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_id str
    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.
    privateApplicationId String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi