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

oci.AnnouncementsService.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.

    List all OCI services

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testServices = oci.AnnouncementsService.getServices({
        compartmentId: compartmentId,
        commsManagerName: serviceCommsManagerName,
        platformType: servicePlatformType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_services = oci.AnnouncementsService.get_services(compartment_id=compartment_id,
        comms_manager_name=service_comms_manager_name,
        platform_type=service_platform_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/AnnouncementsService"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := AnnouncementsService.GetServices(ctx, &announcementsservice.GetServicesArgs{
    			CompartmentId:    compartmentId,
    			CommsManagerName: pulumi.StringRef(serviceCommsManagerName),
    			PlatformType:     pulumi.StringRef(servicePlatformType),
    		}, 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.AnnouncementsService.GetServices.Invoke(new()
        {
            CompartmentId = compartmentId,
            CommsManagerName = serviceCommsManagerName,
            PlatformType = servicePlatformType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.AnnouncementsService.AnnouncementsServiceFunctions;
    import com.pulumi.oci.AnnouncementsService.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 = AnnouncementsServiceFunctions.getServices(GetServicesArgs.builder()
                .compartmentId(compartmentId)
                .commsManagerName(serviceCommsManagerName)
                .platformType(servicePlatformType)
                .build());
    
        }
    }
    
    variables:
      testServices:
        fn::invoke:
          Function: oci:AnnouncementsService:getServices
          Arguments:
            compartmentId: ${compartmentId}
            commsManagerName: ${serviceCommsManagerName}
            platformType: ${servicePlatformType}
    

    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(comms_manager_name: Optional[str] = None,
                     compartment_id: Optional[str] = None,
                     filters: Optional[Sequence[_announcementsservice.GetServicesFilter]] = None,
                     platform_type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetServicesResult
    def get_services_output(comms_manager_name: Optional[pulumi.Input[str]] = None,
                     compartment_id: Optional[pulumi.Input[str]] = None,
                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_announcementsservice.GetServicesFilterArgs]]]] = None,
                     platform_type: 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:AnnouncementsService/getServices:getServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the root compartment/tenancy.
    CommsManagerName string
    Filter by comms manager name
    Filters List<GetServicesFilter>
    PlatformType string
    A filter to return only services underlying a specific platform.
    CompartmentId string
    The OCID of the root compartment/tenancy.
    CommsManagerName string
    Filter by comms manager name
    Filters []GetServicesFilter
    PlatformType string
    A filter to return only services underlying a specific platform.
    compartmentId String
    The OCID of the root compartment/tenancy.
    commsManagerName String
    Filter by comms manager name
    filters List<GetServicesFilter>
    platformType String
    A filter to return only services underlying a specific platform.
    compartmentId string
    The OCID of the root compartment/tenancy.
    commsManagerName string
    Filter by comms manager name
    filters GetServicesFilter[]
    platformType string
    A filter to return only services underlying a specific platform.
    compartment_id str
    The OCID of the root compartment/tenancy.
    comms_manager_name str
    Filter by comms manager name
    filters Sequence[announcementsservice.GetServicesFilter]
    platform_type str
    A filter to return only services underlying a specific platform.
    compartmentId String
    The OCID of the root compartment/tenancy.
    commsManagerName String
    Filter by comms manager name
    filters List<Property Map>
    platformType String
    A filter to return only services underlying a specific platform.

    getServices Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServicesCollections List<GetServicesServicesCollection>
    The list of services_collection.
    CommsManagerName string
    Name of the comms manager team that manages Notifications to this service.
    Filters List<GetServicesFilter>
    PlatformType string
    The platform type this service object is related to.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServicesCollections []GetServicesServicesCollection
    The list of services_collection.
    CommsManagerName string
    Name of the comms manager team that manages Notifications to this service.
    Filters []GetServicesFilter
    PlatformType string
    The platform type this service object is related to.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    servicesCollections List<GetServicesServicesCollection>
    The list of services_collection.
    commsManagerName String
    Name of the comms manager team that manages Notifications to this service.
    filters List<GetServicesFilter>
    platformType String
    The platform type this service object is related to.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    servicesCollections GetServicesServicesCollection[]
    The list of services_collection.
    commsManagerName string
    Name of the comms manager team that manages Notifications to this service.
    filters GetServicesFilter[]
    platformType string
    The platform type this service object is related to.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    services_collections Sequence[announcementsservice.GetServicesServicesCollection]
    The list of services_collection.
    comms_manager_name str
    Name of the comms manager team that manages Notifications to this service.
    filters Sequence[announcementsservice.GetServicesFilter]
    platform_type str
    The platform type this service object is related to.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    servicesCollections List<Property Map>
    The list of services_collection.
    commsManagerName String
    Name of the comms manager team that manages Notifications to this service.
    filters List<Property Map>
    platformType String
    The platform type this service object is related to.

    Supporting Types

    GetServicesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetServicesServicesCollection

    GetServicesServicesCollectionItem

    CommsManagerName string
    Filter by comms manager name
    ExcludedRealms List<string>
    The list of realms where this service is not available to be used.
    Id string
    ID of the service object.
    PlatformType string
    A filter to return only services underlying a specific platform.
    PreviousServiceNames List<string>
    The list of previously used names for this service object.
    ServiceName string
    Name of the service represented by this object.
    ShortName string
    Short name of the team to whom this service object is related.
    State string
    Current state of the service object.
    TeamName string
    Team name to which this service object is related.
    TimeCreated string
    The date and time when the service object was created.
    TimeUpdated string
    The date and time when the service object was updated.
    Type string
    CommsManagerName string
    Filter by comms manager name
    ExcludedRealms []string
    The list of realms where this service is not available to be used.
    Id string
    ID of the service object.
    PlatformType string
    A filter to return only services underlying a specific platform.
    PreviousServiceNames []string
    The list of previously used names for this service object.
    ServiceName string
    Name of the service represented by this object.
    ShortName string
    Short name of the team to whom this service object is related.
    State string
    Current state of the service object.
    TeamName string
    Team name to which this service object is related.
    TimeCreated string
    The date and time when the service object was created.
    TimeUpdated string
    The date and time when the service object was updated.
    Type string
    commsManagerName String
    Filter by comms manager name
    excludedRealms List<String>
    The list of realms where this service is not available to be used.
    id String
    ID of the service object.
    platformType String
    A filter to return only services underlying a specific platform.
    previousServiceNames List<String>
    The list of previously used names for this service object.
    serviceName String
    Name of the service represented by this object.
    shortName String
    Short name of the team to whom this service object is related.
    state String
    Current state of the service object.
    teamName String
    Team name to which this service object is related.
    timeCreated String
    The date and time when the service object was created.
    timeUpdated String
    The date and time when the service object was updated.
    type String
    commsManagerName string
    Filter by comms manager name
    excludedRealms string[]
    The list of realms where this service is not available to be used.
    id string
    ID of the service object.
    platformType string
    A filter to return only services underlying a specific platform.
    previousServiceNames string[]
    The list of previously used names for this service object.
    serviceName string
    Name of the service represented by this object.
    shortName string
    Short name of the team to whom this service object is related.
    state string
    Current state of the service object.
    teamName string
    Team name to which this service object is related.
    timeCreated string
    The date and time when the service object was created.
    timeUpdated string
    The date and time when the service object was updated.
    type string
    comms_manager_name str
    Filter by comms manager name
    excluded_realms Sequence[str]
    The list of realms where this service is not available to be used.
    id str
    ID of the service object.
    platform_type str
    A filter to return only services underlying a specific platform.
    previous_service_names Sequence[str]
    The list of previously used names for this service object.
    service_name str
    Name of the service represented by this object.
    short_name str
    Short name of the team to whom this service object is related.
    state str
    Current state of the service object.
    team_name str
    Team name to which this service object is related.
    time_created str
    The date and time when the service object was created.
    time_updated str
    The date and time when the service object was updated.
    type str
    commsManagerName String
    Filter by comms manager name
    excludedRealms List<String>
    The list of realms where this service is not available to be used.
    id String
    ID of the service object.
    platformType String
    A filter to return only services underlying a specific platform.
    previousServiceNames List<String>
    The list of previously used names for this service object.
    serviceName String
    Name of the service represented by this object.
    shortName String
    Short name of the team to whom this service object is related.
    state String
    Current state of the service object.
    teamName String
    Team name to which this service object is related.
    timeCreated String
    The date and time when the service object was created.
    timeUpdated String
    The date and time when the service object was updated.
    type String

    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