Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getAppCatalogSubscriptions
Explore with Pulumi AI
This data source provides the list of App Catalog Subscriptions in Oracle Cloud Infrastructure Core service.
Lists subscriptions for a compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAppCatalogSubscriptions = oci.Core.getAppCatalogSubscriptions({
compartmentId: compartmentId,
listingId: testListing.id,
});
import pulumi
import pulumi_oci as oci
test_app_catalog_subscriptions = oci.Core.get_app_catalog_subscriptions(compartment_id=compartment_id,
listing_id=test_listing["id"])
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.GetAppCatalogSubscriptions(ctx, &core.GetAppCatalogSubscriptionsArgs{
CompartmentId: compartmentId,
ListingId: pulumi.StringRef(testListing.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 testAppCatalogSubscriptions = Oci.Core.GetAppCatalogSubscriptions.Invoke(new()
{
CompartmentId = compartmentId,
ListingId = testListing.Id,
});
});
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.GetAppCatalogSubscriptionsArgs;
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 testAppCatalogSubscriptions = CoreFunctions.getAppCatalogSubscriptions(GetAppCatalogSubscriptionsArgs.builder()
.compartmentId(compartmentId)
.listingId(testListing.id())
.build());
}
}
variables:
testAppCatalogSubscriptions:
fn::invoke:
Function: oci:Core:getAppCatalogSubscriptions
Arguments:
compartmentId: ${compartmentId}
listingId: ${testListing.id}
Using getAppCatalogSubscriptions
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 getAppCatalogSubscriptions(args: GetAppCatalogSubscriptionsArgs, opts?: InvokeOptions): Promise<GetAppCatalogSubscriptionsResult>
function getAppCatalogSubscriptionsOutput(args: GetAppCatalogSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetAppCatalogSubscriptionsResult>
def get_app_catalog_subscriptions(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetAppCatalogSubscriptionsFilter]] = None,
listing_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppCatalogSubscriptionsResult
def get_app_catalog_subscriptions_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetAppCatalogSubscriptionsFilterArgs]]]] = None,
listing_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppCatalogSubscriptionsResult]
func GetAppCatalogSubscriptions(ctx *Context, args *GetAppCatalogSubscriptionsArgs, opts ...InvokeOption) (*GetAppCatalogSubscriptionsResult, error)
func GetAppCatalogSubscriptionsOutput(ctx *Context, args *GetAppCatalogSubscriptionsOutputArgs, opts ...InvokeOption) GetAppCatalogSubscriptionsResultOutput
> Note: This function is named GetAppCatalogSubscriptions
in the Go SDK.
public static class GetAppCatalogSubscriptions
{
public static Task<GetAppCatalogSubscriptionsResult> InvokeAsync(GetAppCatalogSubscriptionsArgs args, InvokeOptions? opts = null)
public static Output<GetAppCatalogSubscriptionsResult> Invoke(GetAppCatalogSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppCatalogSubscriptionsResult> getAppCatalogSubscriptions(GetAppCatalogSubscriptionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getAppCatalogSubscriptions:getAppCatalogSubscriptions
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
App Catalog Subscriptions Filter> - Listing
Id string - A filter to return only the listings that matches the given listing id.
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
App Catalog Subscriptions Filter - Listing
Id string - A filter to return only the listings that matches the given listing id.
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
App Catalog Subscriptions Filter> - listing
Id String - A filter to return only the listings that matches the given listing id.
- compartment
Id string - The OCID of the compartment.
- filters
Get
App Catalog Subscriptions Filter[] - listing
Id string - A filter to return only the listings that matches the given listing id.
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[core.
Get App Catalog Subscriptions Filter] - listing_
id str - A filter to return only the listings that matches the given listing id.
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
- listing
Id String - A filter to return only the listings that matches the given listing id.
getAppCatalogSubscriptions Result
The following output properties are available:
- App
Catalog List<GetSubscriptions App Catalog Subscriptions App Catalog Subscription> - The list of app_catalog_subscriptions.
- Compartment
Id string - The compartmentID of the subscription.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
App Catalog Subscriptions Filter> - Listing
Id string - The ocid of the listing resource.
- App
Catalog []GetSubscriptions App Catalog Subscriptions App Catalog Subscription - The list of app_catalog_subscriptions.
- Compartment
Id string - The compartmentID of the subscription.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
App Catalog Subscriptions Filter - Listing
Id string - The ocid of the listing resource.
- app
Catalog List<GetSubscriptions App Catalog Subscriptions App Catalog Subscription> - The list of app_catalog_subscriptions.
- compartment
Id String - The compartmentID of the subscription.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
App Catalog Subscriptions Filter> - listing
Id String - The ocid of the listing resource.
- app
Catalog GetSubscriptions App Catalog Subscriptions App Catalog Subscription[] - The list of app_catalog_subscriptions.
- compartment
Id string - The compartmentID of the subscription.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
App Catalog Subscriptions Filter[] - listing
Id string - The ocid of the listing resource.
- app_
catalog_ Sequence[core.subscriptions Get App Catalog Subscriptions App Catalog Subscription] - The list of app_catalog_subscriptions.
- compartment_
id str - The compartmentID of the subscription.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[core.
Get App Catalog Subscriptions Filter] - listing_
id str - The ocid of the listing resource.
- app
Catalog List<Property Map>Subscriptions - The list of app_catalog_subscriptions.
- compartment
Id String - The compartmentID of the subscription.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- listing
Id String - The ocid of the listing resource.
Supporting Types
GetAppCatalogSubscriptionsAppCatalogSubscription
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Listing
Id string - A filter to return only the listings that matches the given listing id.
- Listing
Resource stringId - Listing resource id.
- Listing
Resource stringVersion - Listing resource version.
- Oracle
Terms stringOf Use Link - Publisher
Name string - Name of the publisher who published this listing.
- Signature string
- Summary string
- The short summary to the listing.
- Time
Created string - Date and time at which the subscription was created, in RFC3339 format. Example:
2018-03-20T12:32:53.532Z
- Time
Retrieved string - Eula
Link string
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Listing
Id string - A filter to return only the listings that matches the given listing id.
- Listing
Resource stringId - Listing resource id.
- Listing
Resource stringVersion - Listing resource version.
- Oracle
Terms stringOf Use Link - Publisher
Name string - Name of the publisher who published this listing.
- Signature string
- Summary string
- The short summary to the listing.
- Time
Created string - Date and time at which the subscription was created, in RFC3339 format. Example:
2018-03-20T12:32:53.532Z
- Time
Retrieved string - Eula
Link string
- compartment
Id String - The OCID of the compartment.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- listing
Id String - A filter to return only the listings that matches the given listing id.
- listing
Resource StringId - Listing resource id.
- listing
Resource StringVersion - Listing resource version.
- oracle
Terms StringOf Use Link - publisher
Name String - Name of the publisher who published this listing.
- signature String
- summary String
- The short summary to the listing.
- time
Created String - Date and time at which the subscription was created, in RFC3339 format. Example:
2018-03-20T12:32:53.532Z
- time
Retrieved String - eula
Link String
- compartment
Id string - The OCID of the compartment.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- listing
Id string - A filter to return only the listings that matches the given listing id.
- listing
Resource stringId - Listing resource id.
- listing
Resource stringVersion - Listing resource version.
- oracle
Terms stringOf Use Link - publisher
Name string - Name of the publisher who published this listing.
- signature string
- summary string
- The short summary to the listing.
- time
Created string - Date and time at which the subscription was created, in RFC3339 format. Example:
2018-03-20T12:32:53.532Z
- time
Retrieved string - eula
Link string
- compartment_
id str - The OCID of the compartment.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- listing_
id str - A filter to return only the listings that matches the given listing id.
- listing_
resource_ strid - Listing resource id.
- listing_
resource_ strversion - Listing resource version.
- oracle_
terms_ strof_ use_ link - publisher_
name str - Name of the publisher who published this listing.
- signature str
- summary str
- The short summary to the listing.
- time_
created str - Date and time at which the subscription was created, in RFC3339 format. Example:
2018-03-20T12:32:53.532Z
- time_
retrieved str - eula_
link str
- compartment
Id String - The OCID of the compartment.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- listing
Id String - A filter to return only the listings that matches the given listing id.
- listing
Resource StringId - Listing resource id.
- listing
Resource StringVersion - Listing resource version.
- oracle
Terms StringOf Use Link - publisher
Name String - Name of the publisher who published this listing.
- signature String
- summary String
- The short summary to the listing.
- time
Created String - Date and time at which the subscription was created, in RFC3339 format. Example:
2018-03-20T12:32:53.532Z
- time
Retrieved String - eula
Link String
GetAppCatalogSubscriptionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.