1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getServices
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getServices

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Lists the available Service objects that you can enable for a service gateway in this region.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testServices = oci.Core.getServices({});
    
    import pulumi
    import pulumi_oci as oci
    
    test_services = oci.Core.get_services()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetServices(ctx, &core.GetServicesArgs{}, 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.Core.GetServices.Invoke();
    
    });
    
    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.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 = CoreFunctions.getServices();
    
        }
    }
    
    variables:
      testServices:
        fn::invoke:
          Function: oci:Core:getServices
          Arguments: {}
    

    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(filters: Optional[Sequence[_core.GetServicesFilter]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetServicesResult
    def get_services_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.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:Core/getServices:getServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Services List<GetServicesService>
    The list of services.
    Filters List<GetServicesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    Services []GetServicesService
    The list of services.
    Filters []GetServicesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    services List<GetServicesService>
    The list of services.
    filters List<GetServicesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    services GetServicesService[]
    The list of services.
    filters GetServicesFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    services Sequence[core.GetServicesService]
    The list of services.
    filters Sequence[core.GetServicesFilter]
    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
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    Values List<string>
    Regex bool
    Name string
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    Values []string
    Regex bool
    name String
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    values List<String>
    regex Boolean
    name string
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    values string[]
    regex boolean
    name str
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    values Sequence[str]
    regex bool
    name String
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    values List<String>
    regex Boolean

    GetServicesService

    CidrBlock string
    A string that represents the regional public IP address ranges for the Oracle service or services covered by this Service object. Also known as the Service object's service CIDR label.
    Description string
    Description of the Oracle service or services covered by this Service object. Example: OCI PHX Object Storage
    Id string
    The Service object's OCID.
    Name string
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    CidrBlock string
    A string that represents the regional public IP address ranges for the Oracle service or services covered by this Service object. Also known as the Service object's service CIDR label.
    Description string
    Description of the Oracle service or services covered by this Service object. Example: OCI PHX Object Storage
    Id string
    The Service object's OCID.
    Name string
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    cidrBlock String
    A string that represents the regional public IP address ranges for the Oracle service or services covered by this Service object. Also known as the Service object's service CIDR label.
    description String
    Description of the Oracle service or services covered by this Service object. Example: OCI PHX Object Storage
    id String
    The Service object's OCID.
    name String
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    cidrBlock string
    A string that represents the regional public IP address ranges for the Oracle service or services covered by this Service object. Also known as the Service object's service CIDR label.
    description string
    Description of the Oracle service or services covered by this Service object. Example: OCI PHX Object Storage
    id string
    The Service object's OCID.
    name string
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    cidr_block str
    A string that represents the regional public IP address ranges for the Oracle service or services covered by this Service object. Also known as the Service object's service CIDR label.
    description str
    Description of the Oracle service or services covered by this Service object. Example: OCI PHX Object Storage
    id str
    The Service object's OCID.
    name str
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage
    cidrBlock String
    A string that represents the regional public IP address ranges for the Oracle service or services covered by this Service object. Also known as the Service object's service CIDR label.
    description String
    Description of the Oracle service or services covered by this Service object. Example: OCI PHX Object Storage
    id String
    The Service object's OCID.
    name String
    Name of the Service object. This name can change and is not guaranteed to be unique. Example: OCI PHX Object Storage

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi