1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Limits
  5. getServices
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Limits.getServices

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

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

    Returns the list of supported services. 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: _var.tenancy_ocid,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_services = oci.Limits.get_services(compartment_id=var["tenancy_ocid"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: _var.Tenancy_ocid,
    		}, 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 = @var.Tenancy_ocid,
        });
    
    });
    
    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(var_.tenancy_ocid())
                .build());
    
        }
    }
    
    variables:
      testServices:
        fn::invoke:
          Function: oci:Limits:getServices
          Arguments:
            compartmentId: ${var.tenancy_ocid}
    

    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,
                     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,
                     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>
    CompartmentId string
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    Filters []GetServicesFilter
    compartmentId String
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters List<GetServicesFilter>
    compartmentId string
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters GetServicesFilter[]
    compartment_id str
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters Sequence[limits.GetServicesFilter]
    compartmentId String
    The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
    filters List<Property Map>

    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>
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Services []GetServicesService
    The list of services.
    Filters []GetServicesFilter
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    services List<GetServicesService>
    The list of services.
    filters List<GetServicesFilter>
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    services GetServicesService[]
    The list of services.
    filters GetServicesFilter[]
    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]
    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>

    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.
    Description string
    The friendly service name.
    Name string
    The service name. Use this when calling other APIs.
    description String
    The friendly service name.
    name String
    The service name. Use this when calling other APIs.
    description string
    The friendly service name.
    name string
    The service name. Use this when calling other APIs.
    description str
    The friendly service name.
    name str
    The service name. Use this when calling other APIs.
    description String
    The friendly service name.
    name String
    The service name. Use this when calling other APIs.

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi