1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getAppCatalogSubscriptions
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Core.getAppCatalogSubscriptions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    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: _var.compartment_id,
        listingId: data.oci_core_app_catalog_listing.test_listing.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_app_catalog_subscriptions = oci.Core.get_app_catalog_subscriptions(compartment_id=var["compartment_id"],
        listing_id=data["oci_core_app_catalog_listing"]["test_listing"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
    			ListingId:     pulumi.StringRef(data.Oci_core_app_catalog_listing.Test_listing.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 = @var.Compartment_id,
            ListingId = data.Oci_core_app_catalog_listing.Test_listing.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(var_.compartment_id())
                .listingId(data.oci_core_app_catalog_listing().test_listing().id())
                .build());
    
        }
    }
    
    variables:
      testAppCatalogSubscriptions:
        fn::invoke:
          Function: oci:Core:getAppCatalogSubscriptions
          Arguments:
            compartmentId: ${var.compartment_id}
            listingId: ${data.oci_core_app_catalog_listing.test_listing.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:

    CompartmentId string
    The OCID of the compartment.
    Filters List<GetAppCatalogSubscriptionsFilter>
    ListingId string
    A filter to return only the listings that matches the given listing id.
    CompartmentId string
    The OCID of the compartment.
    Filters []GetAppCatalogSubscriptionsFilter
    ListingId string
    A filter to return only the listings that matches the given listing id.
    compartmentId String
    The OCID of the compartment.
    filters List<GetAppCatalogSubscriptionsFilter>
    listingId String
    A filter to return only the listings that matches the given listing id.
    compartmentId string
    The OCID of the compartment.
    filters GetAppCatalogSubscriptionsFilter[]
    listingId string
    A filter to return only the listings that matches the given listing id.
    compartment_id str
    The OCID of the compartment.
    filters GetAppCatalogSubscriptionsFilter]
    listing_id str
    A filter to return only the listings that matches the given listing id.
    compartmentId String
    The OCID of the compartment.
    filters List<Property Map>
    listingId String
    A filter to return only the listings that matches the given listing id.

    getAppCatalogSubscriptions Result

    The following output properties are available:

    AppCatalogSubscriptions List<GetAppCatalogSubscriptionsAppCatalogSubscription>
    The list of app_catalog_subscriptions.
    CompartmentId string
    The compartmentID of the subscription.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetAppCatalogSubscriptionsFilter>
    ListingId string
    The ocid of the listing resource.
    AppCatalogSubscriptions []GetAppCatalogSubscriptionsAppCatalogSubscription
    The list of app_catalog_subscriptions.
    CompartmentId string
    The compartmentID of the subscription.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetAppCatalogSubscriptionsFilter
    ListingId string
    The ocid of the listing resource.
    appCatalogSubscriptions List<GetAppCatalogSubscriptionsAppCatalogSubscription>
    The list of app_catalog_subscriptions.
    compartmentId String
    The compartmentID of the subscription.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetAppCatalogSubscriptionsFilter>
    listingId String
    The ocid of the listing resource.
    appCatalogSubscriptions GetAppCatalogSubscriptionsAppCatalogSubscription[]
    The list of app_catalog_subscriptions.
    compartmentId string
    The compartmentID of the subscription.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetAppCatalogSubscriptionsFilter[]
    listingId string
    The ocid of the listing resource.
    app_catalog_subscriptions GetAppCatalogSubscriptionsAppCatalogSubscription]
    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 GetAppCatalogSubscriptionsFilter]
    listing_id str
    The ocid of the listing resource.
    appCatalogSubscriptions List<Property Map>
    The list of app_catalog_subscriptions.
    compartmentId String
    The compartmentID of the subscription.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>
    listingId String
    The ocid of the listing resource.

    Supporting Types

    GetAppCatalogSubscriptionsAppCatalogSubscription

    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    ListingId string
    A filter to return only the listings that matches the given listing id.
    ListingResourceId string
    Listing resource id.
    ListingResourceVersion string
    Listing resource version.
    OracleTermsOfUseLink string
    PublisherName string
    Name of the publisher who published this listing.
    Signature string
    Summary string
    The short summary to the listing.
    TimeCreated string
    Date and time at which the subscription was created, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    TimeRetrieved string
    EulaLink string
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    ListingId string
    A filter to return only the listings that matches the given listing id.
    ListingResourceId string
    Listing resource id.
    ListingResourceVersion string
    Listing resource version.
    OracleTermsOfUseLink string
    PublisherName string
    Name of the publisher who published this listing.
    Signature string
    Summary string
    The short summary to the listing.
    TimeCreated string
    Date and time at which the subscription was created, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    TimeRetrieved string
    EulaLink string
    compartmentId String
    The OCID of the compartment.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    listingId String
    A filter to return only the listings that matches the given listing id.
    listingResourceId String
    Listing resource id.
    listingResourceVersion String
    Listing resource version.
    oracleTermsOfUseLink String
    publisherName String
    Name of the publisher who published this listing.
    signature String
    summary String
    The short summary to the listing.
    timeCreated String
    Date and time at which the subscription was created, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    timeRetrieved String
    eulaLink String
    compartmentId string
    The OCID of the compartment.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    listingId string
    A filter to return only the listings that matches the given listing id.
    listingResourceId string
    Listing resource id.
    listingResourceVersion string
    Listing resource version.
    oracleTermsOfUseLink string
    publisherName string
    Name of the publisher who published this listing.
    signature string
    summary string
    The short summary to the listing.
    timeCreated string
    Date and time at which the subscription was created, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    timeRetrieved string
    eulaLink 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_id str
    Listing resource id.
    listing_resource_version str
    Listing resource version.
    oracle_terms_of_use_link str
    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
    compartmentId String
    The OCID of the compartment.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    listingId String
    A filter to return only the listings that matches the given listing id.
    listingResourceId String
    Listing resource id.
    listingResourceVersion String
    Listing resource version.
    oracleTermsOfUseLink String
    publisherName String
    Name of the publisher who published this listing.
    signature String
    summary String
    The short summary to the listing.
    timeCreated String
    Date and time at which the subscription was created, in RFC3339 format. Example: 2018-03-20T12:32:53.532Z
    timeRetrieved String
    eulaLink String

    GetAppCatalogSubscriptionsFilter

    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

    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 v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi