Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Limits.getServices
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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: tenancyOcid,
});
import pulumi
import pulumi_oci as oci
test_services = oci.Limits.get_services(compartment_id=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: tenancyOcid,
}, 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,
});
});
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)
.build());
}
}
variables:
testServices:
fn::invoke:
Function: oci:Limits:getServices
Arguments:
compartmentId: ${tenancyOcid}
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:
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
List<Get
Services Filter>
- Compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- Filters
[]Get
Services Filter
- compartment
Id String - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
List<Get
Services Filter>
- compartment
Id string - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
Get
Services Filter[]
- compartment_
id str - The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
- filters
Sequence[limits.
Get Services Filter]
- compartment
Id 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:
- 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>
- 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
- 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>
- 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[]
- 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]
- 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>
Supporting Types
GetServicesFilter
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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi