Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Limits.getServices
Explore with Pulumi AI
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:
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
List<Get
Services Filter> - Subscription
Id string - The OCID of the subscription assigned to tenant
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
[]Get
Services Filter - Subscription
Id string - The OCID of the subscription assigned to tenant
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
List<Get
Services Filter> - subscription
Id String - The OCID of the subscription assigned to tenant
- compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
Get
Services Filter[] - subscription
Id 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.
Get Services Filter] - subscription_
id str - The OCID of the subscription assigned to tenant
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters List<Property Map>
- subscription
Id String - The OCID of the subscription assigned to tenant
getServices Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Services
List<Get
Services Service> - The list of services.
- Filters
List<Get
Services Filter> - Subscription
Id string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Services
[]Get
Services Service - The list of services.
- Filters
[]Get
Services Filter - Subscription
Id string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- services
List<Get
Services Service> - The list of services.
- filters
List<Get
Services Filter> - subscription
Id String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- services
Get
Services Service[] - The list of services.
- filters
Get
Services Filter[] - subscription
Id string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- services
Sequence[limits.
Get Services Service] - The list of services.
- filters
Sequence[limits.
Get Services Filter] - subscription_
id str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- services List<Property Map>
- The list of services.
- filters List<Property Map>
- subscription
Id String
Supporting Types
GetServicesFilter
GetServicesService
- Description string
- The friendly service name.
- Name string
- The service name. Use this when calling other APIs.
- Supported
Subscriptions 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.
- Supported
Subscriptions []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.
- supported
Subscriptions 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.
- supported
Subscriptions 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.
- supported
Subscriptions 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.