1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Limits
  5. getServices
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Limits.getServices

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Services in Oracle Cloud Infrastructure Limits service.

    Returns the list of supported services. If subscription ID is provided then only services supported by subscription will be returned. This includes the programmatic service name, along with the friendly service name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testServices = oci.Limits.getServices({
        compartmentId: tenancyOcid,
        subscriptionId: subscriptionOcid,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_services = oci.Limits.get_services(compartment_id=tenancy_ocid,
        subscription_id=subscription_ocid)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Limits"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Limits.GetServices(ctx, &limits.GetServicesArgs{
    			CompartmentId:  tenancyOcid,
    			SubscriptionId: pulumi.StringRef(subscriptionOcid),
    		}, 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 testServices = Oci.Limits.GetServices.Invoke(new()
        {
            CompartmentId = tenancyOcid,
            SubscriptionId = subscriptionOcid,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Limits.LimitsFunctions;
    import com.pulumi.oci.Limits.inputs.GetServicesArgs;
    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 testServices = LimitsFunctions.getServices(GetServicesArgs.builder()
                .compartmentId(tenancyOcid)
                .subscriptionId(subscriptionOcid)
                .build());
    
        }
    }
    
    variables:
      testServices:
        fn::invoke:
          Function: oci:Limits:getServices
          Arguments:
            compartmentId: ${tenancyOcid}
            subscriptionId: ${subscriptionOcid}
    

    Using getServices

    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 getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
    function getServicesOutput(args: GetServicesOutputArgs, opts?: InvokeOptions): Output<GetServicesResult>
    def get_services(compartment_id: Optional[str] = None,
                     filters: Optional[Sequence[_limits.GetServicesFilter]] = None,
                     subscription_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetServicesResult
    def get_services_output(compartment_id: Optional[pulumi.Input[str]] = None,
                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_limits.GetServicesFilterArgs]]]] = None,
                     subscription_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetServicesResult]
    func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
    func GetServicesOutput(ctx *Context, args *GetServicesOutputArgs, opts ...InvokeOption) GetServicesResultOutput

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

    public static class GetServices 
    {
        public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Limits/getServices:getServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    Filters List<GetServicesFilter>
    SubscriptionId string
    The OCID of the subscription assigned to tenant
    CompartmentId string
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    Filters []GetServicesFilter
    SubscriptionId string
    The OCID of the subscription assigned to tenant
    compartmentId String
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters List<GetServicesFilter>
    subscriptionId String
    The OCID of the subscription assigned to tenant
    compartmentId string
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters GetServicesFilter[]
    subscriptionId string
    The OCID of the subscription assigned to tenant
    compartment_id str
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters Sequence[limits.GetServicesFilter]
    subscription_id str
    The OCID of the subscription assigned to tenant
    compartmentId String
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters List<Property Map>
    subscriptionId String
    The OCID of the subscription assigned to tenant

    getServices Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Services List<GetServicesService>
    The list of services.
    Filters List<GetServicesFilter>
    SubscriptionId string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Services []GetServicesService
    The list of services.
    Filters []GetServicesFilter
    SubscriptionId string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    services List<GetServicesService>
    The list of services.
    filters List<GetServicesFilter>
    subscriptionId String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    services GetServicesService[]
    The list of services.
    filters GetServicesFilter[]
    subscriptionId string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    services Sequence[limits.GetServicesService]
    The list of services.
    filters Sequence[limits.GetServicesFilter]
    subscription_id str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    services List<Property Map>
    The list of services.
    filters List<Property Map>
    subscriptionId String

    Supporting Types

    GetServicesFilter

    Name string
    The service name. Use this when calling other APIs.
    Values List<string>
    Regex bool
    Name string
    The service name. Use this when calling other APIs.
    Values []string
    Regex bool
    name String
    The service name. Use this when calling other APIs.
    values List<String>
    regex Boolean
    name string
    The service name. Use this when calling other APIs.
    values string[]
    regex boolean
    name str
    The service name. Use this when calling other APIs.
    values Sequence[str]
    regex bool
    name String
    The service name. Use this when calling other APIs.
    values List<String>
    regex Boolean

    GetServicesService

    Description string
    The friendly service name.
    Name string
    The service name. Use this when calling other APIs.
    SupportedSubscriptions List<string>
    An array of subscription types supported by the service. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
    Description string
    The friendly service name.
    Name string
    The service name. Use this when calling other APIs.
    SupportedSubscriptions []string
    An array of subscription types supported by the service. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
    description String
    The friendly service name.
    name String
    The service name. Use this when calling other APIs.
    supportedSubscriptions List<String>
    An array of subscription types supported by the service. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
    description string
    The friendly service name.
    name string
    The service name. Use this when calling other APIs.
    supportedSubscriptions string[]
    An array of subscription types supported by the service. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
    description str
    The friendly service name.
    name str
    The service name. Use this when calling other APIs.
    supported_subscriptions Sequence[str]
    An array of subscription types supported by the service. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.
    description String
    The friendly service name.
    name String
    The service name. Use this when calling other APIs.
    supportedSubscriptions List<String>
    An array of subscription types supported by the service. e,g The type of subscription, such as 'SAAS', 'ERP', 'CRM'.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi