Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.AnnouncementsService.getServices
Explore with Pulumi AI
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[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[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)
public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:AnnouncementsService/getServices:getServices
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the root compartment/tenancy.
- CommsManager stringName 
- Filter by comms manager name
- Filters
List<GetServices Filter> 
- PlatformType string
- A filter to return only services underlying a specific platform.
- CompartmentId string
- The OCID of the root compartment/tenancy.
- CommsManager stringName 
- Filter by comms manager name
- Filters
[]GetServices Filter 
- PlatformType string
- A filter to return only services underlying a specific platform.
- compartmentId String
- The OCID of the root compartment/tenancy.
- commsManager StringName 
- Filter by comms manager name
- filters
List<GetServices Filter> 
- platformType String
- A filter to return only services underlying a specific platform.
- compartmentId string
- The OCID of the root compartment/tenancy.
- commsManager stringName 
- Filter by comms manager name
- filters
GetServices Filter[] 
- platformType string
- A filter to return only services underlying a specific platform.
- compartment_id str
- The OCID of the root compartment/tenancy.
- comms_manager_ strname 
- Filter by comms manager name
- filters
Sequence[GetServices Filter] 
- platform_type str
- A filter to return only services underlying a specific platform.
- compartmentId String
- The OCID of the root compartment/tenancy.
- commsManager StringName 
- 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<GetServices Services Collection> 
- The list of services_collection.
- CommsManager stringName 
- Name of the comms manager team that manages Notifications to this service.
- Filters
List<GetServices Filter> 
- 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 []GetServices Services Collection 
- The list of services_collection.
- CommsManager stringName 
- Name of the comms manager team that manages Notifications to this service.
- Filters
[]GetServices Filter 
- 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<GetServices Services Collection> 
- The list of services_collection.
- commsManager StringName 
- Name of the comms manager team that manages Notifications to this service.
- filters
List<GetServices Filter> 
- 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 GetServices Services Collection[] 
- The list of services_collection.
- commsManager stringName 
- Name of the comms manager team that manages Notifications to this service.
- filters
GetServices Filter[] 
- 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[GetServices Services Collection] 
- The list of services_collection.
- comms_manager_ strname 
- Name of the comms manager team that manages Notifications to this service.
- filters
Sequence[GetServices Filter] 
- 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.
- commsManager StringName 
- 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  
GetServicesServicesCollection   
GetServicesServicesCollectionItem    
- CommsManager stringName 
- 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.
- PreviousService List<string>Names 
- 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
- CommsManager stringName 
- 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.
- PreviousService []stringNames 
- 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
- commsManager StringName 
- 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.
- previousService List<String>Names 
- 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
- commsManager stringName 
- 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.
- previousService string[]Names 
- 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_ strname 
- 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_ Sequence[str]names 
- 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
- commsManager StringName 
- 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.
- previousService List<String>Names 
- 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 ociTerraform Provider.