Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ServiceCatalog.getPrivateApplicationPackages
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Private
Application stringId - The unique identifier for the private application.
- Display
Name string - Exact match name filter.
- Filters
List<Get
Private Application Packages Filter> - Package
Types 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.
- Private
Application stringPackage Id - The unique identifier for the private application package.
- Private
Application stringId - The unique identifier for the private application.
- Display
Name string - Exact match name filter.
- Filters
[]Get
Private Application Packages Filter - Package
Types []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.
- Private
Application stringPackage Id - The unique identifier for the private application package.
- private
Application StringId - The unique identifier for the private application.
- display
Name String - Exact match name filter.
- filters
List<Get
Private Application Packages Filter> - package
Types 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.
- private
Application StringPackage Id - The unique identifier for the private application package.
- private
Application stringId - The unique identifier for the private application.
- display
Name string - Exact match name filter.
- filters
Get
Private Application Packages Filter[] - package
Types 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.
- private
Application 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[servicecatalog.
Get Private 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.
- private
Application StringId - The unique identifier for the private application.
- display
Name String - Exact match name filter.
- filters List<Property Map>
- package
Types 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.
- private
Application 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.
- Private
Application stringId - The OCID of the private application where the package is hosted.
- Private
Application List<GetPackage Collections Private Application Packages Private Application Package Collection> - The list of private_application_package_collection.
- Display
Name string - The display name of the package.
- Filters
List<Get
Private Application Packages Filter> - Package
Types List<string> - The specified package's type.
- Private
Application stringPackage Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Application stringId - The OCID of the private application where the package is hosted.
- Private
Application []GetPackage Collections Private Application Packages Private Application Package Collection - The list of private_application_package_collection.
- Display
Name string - The display name of the package.
- Filters
[]Get
Private Application Packages Filter - Package
Types []string - The specified package's type.
- Private
Application stringPackage Id
- id String
- The provider-assigned unique ID for this managed resource.
- private
Application StringId - The OCID of the private application where the package is hosted.
- private
Application List<GetPackage Collections Private Application Packages Private Application Package Collection> - The list of private_application_package_collection.
- display
Name String - The display name of the package.
- filters
List<Get
Private Application Packages Filter> - package
Types List<String> - The specified package's type.
- private
Application StringPackage Id
- id string
- The provider-assigned unique ID for this managed resource.
- private
Application stringId - The OCID of the private application where the package is hosted.
- private
Application GetPackage Collections Private Application Packages Private Application Package Collection[] - The list of private_application_package_collection.
- display
Name string - The display name of the package.
- filters
Get
Private Application Packages Filter[] - package
Types string[] - The specified package's type.
- private
Application 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[servicecatalog.package_ collections Get 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[servicecatalog.
Get Private 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.
- private
Application StringId - The OCID of the private application where the package is hosted.
- private
Application List<Property Map>Package Collections - The list of private_application_package_collection.
- display
Name String - The display name of the package.
- filters List<Property Map>
- package
Types List<String> - The specified package's type.
- private
Application StringPackage Id
Supporting Types
GetPrivateApplicationPackagesFilter
GetPrivateApplicationPackagesPrivateApplicationPackageCollection
GetPrivateApplicationPackagesPrivateApplicationPackageCollectionItem
- Content
Url string - Display
Name string - Exact match name filter.
- Id string
- The OCID of the private application package.
- Mime
Type string - Package
Type 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.
- Private
Application stringId - The unique identifier for the private application.
- Time
Created 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 string - Display
Name string - Exact match name filter.
- Id string
- The OCID of the private application package.
- Mime
Type string - Package
Type 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.
- Private
Application stringId - The unique identifier for the private application.
- Time
Created 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 String - display
Name String - Exact match name filter.
- id String
- The OCID of the private application package.
- mime
Type String - package
Type 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.
- private
Application StringId - The unique identifier for the private application.
- time
Created 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 string - display
Name string - Exact match name filter.
- id string
- The OCID of the private application package.
- mime
Type string - package
Type 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.
- private
Application stringId - The unique identifier for the private application.
- time
Created 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.
- content
Url String - display
Name String - Exact match name filter.
- id String
- The OCID of the private application package.
- mime
Type String - package
Type 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.
- private
Application StringId - The unique identifier for the private application.
- time
Created 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi