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

oci.ServiceCatalog.getPrivateApplicationPackage

Explore with Pulumi AI

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

    This data source provides details about a specific Private Application Package resource in Oracle Cloud Infrastructure Service Catalog service.

    Gets the details of a specific package within a given private application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPrivateApplicationPackage = oci.ServiceCatalog.getPrivateApplicationPackage({
        privateApplicationPackageId: testPrivateApplicationPackageOciServiceCatalogPrivateApplicationPackage.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_private_application_package = oci.ServiceCatalog.get_private_application_package(private_application_package_id=test_private_application_package_oci_service_catalog_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.GetPrivateApplicationPackage(ctx, &servicecatalog.GetPrivateApplicationPackageArgs{
    			PrivateApplicationPackageId: testPrivateApplicationPackageOciServiceCatalogPrivateApplicationPackage.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 testPrivateApplicationPackage = Oci.ServiceCatalog.GetPrivateApplicationPackage.Invoke(new()
        {
            PrivateApplicationPackageId = testPrivateApplicationPackageOciServiceCatalogPrivateApplicationPackage.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.GetPrivateApplicationPackageArgs;
    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 testPrivateApplicationPackage = ServiceCatalogFunctions.getPrivateApplicationPackage(GetPrivateApplicationPackageArgs.builder()
                .privateApplicationPackageId(testPrivateApplicationPackageOciServiceCatalogPrivateApplicationPackage.id())
                .build());
    
        }
    }
    
    variables:
      testPrivateApplicationPackage:
        fn::invoke:
          Function: oci:ServiceCatalog:getPrivateApplicationPackage
          Arguments:
            privateApplicationPackageId: ${testPrivateApplicationPackageOciServiceCatalogPrivateApplicationPackage.id}
    

    Using getPrivateApplicationPackage

    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 getPrivateApplicationPackage(args: GetPrivateApplicationPackageArgs, opts?: InvokeOptions): Promise<GetPrivateApplicationPackageResult>
    function getPrivateApplicationPackageOutput(args: GetPrivateApplicationPackageOutputArgs, opts?: InvokeOptions): Output<GetPrivateApplicationPackageResult>
    def get_private_application_package(private_application_package_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetPrivateApplicationPackageResult
    def get_private_application_package_output(private_application_package_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetPrivateApplicationPackageResult]
    func GetPrivateApplicationPackage(ctx *Context, args *GetPrivateApplicationPackageArgs, opts ...InvokeOption) (*GetPrivateApplicationPackageResult, error)
    func GetPrivateApplicationPackageOutput(ctx *Context, args *GetPrivateApplicationPackageOutputArgs, opts ...InvokeOption) GetPrivateApplicationPackageResultOutput

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

    public static class GetPrivateApplicationPackage 
    {
        public static Task<GetPrivateApplicationPackageResult> InvokeAsync(GetPrivateApplicationPackageArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivateApplicationPackageResult> Invoke(GetPrivateApplicationPackageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivateApplicationPackageResult> getPrivateApplicationPackage(GetPrivateApplicationPackageArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceCatalog/getPrivateApplicationPackage:getPrivateApplicationPackage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PrivateApplicationPackageId string
    The unique identifier for the private application package.
    PrivateApplicationPackageId string
    The unique identifier for the private application package.
    privateApplicationPackageId String
    The unique identifier for the private application package.
    privateApplicationPackageId string
    The unique identifier for the private application package.
    private_application_package_id str
    The unique identifier for the private application package.
    privateApplicationPackageId String
    The unique identifier for the private application package.

    getPrivateApplicationPackage Result

    The following output properties are available:

    ContentUrl string
    DisplayName string
    The display name of the package.
    Id string
    The provider-assigned unique ID for this managed resource.
    MimeType string
    PackageType string
    The specified package's type.
    PrivateApplicationId string
    The OCID of the private application where the package is hosted.
    PrivateApplicationPackageId string
    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
    The display name of the package.
    Id string
    The provider-assigned unique ID for this managed resource.
    MimeType string
    PackageType string
    The specified package's type.
    PrivateApplicationId string
    The OCID of the private application where the package is hosted.
    PrivateApplicationPackageId string
    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
    The display name of the package.
    id String
    The provider-assigned unique ID for this managed resource.
    mimeType String
    packageType String
    The specified package's type.
    privateApplicationId String
    The OCID of the private application where the package is hosted.
    privateApplicationPackageId String
    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
    The display name of the package.
    id string
    The provider-assigned unique ID for this managed resource.
    mimeType string
    packageType string
    The specified package's type.
    privateApplicationId string
    The OCID of the private application where the package is hosted.
    privateApplicationPackageId string
    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
    The display name of the package.
    id str
    The provider-assigned unique ID for this managed resource.
    mime_type str
    package_type str
    The specified package's type.
    private_application_id str
    The OCID of the private application where the package is hosted.
    private_application_package_id str
    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
    The display name of the package.
    id String
    The provider-assigned unique ID for this managed resource.
    mimeType String
    packageType String
    The specified package's type.
    privateApplicationId String
    The OCID of the private application where the package is hosted.
    privateApplicationPackageId String
    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