Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Compartment
Id string - The OCID of the root compartment/tenancy.
- Comms
Manager stringName - Filter by comms manager name
- Filters
List<Get
Services Filter> - Platform
Type string - A filter to return only services underlying a specific platform.
- Compartment
Id string - The OCID of the root compartment/tenancy.
- Comms
Manager stringName - Filter by comms manager name
- Filters
[]Get
Services Filter - Platform
Type string - A filter to return only services underlying a specific platform.
- compartment
Id String - The OCID of the root compartment/tenancy.
- comms
Manager StringName - Filter by comms manager name
- filters
List<Get
Services Filter> - platform
Type String - A filter to return only services underlying a specific platform.
- compartment
Id string - The OCID of the root compartment/tenancy.
- comms
Manager stringName - Filter by comms manager name
- filters
Get
Services Filter[] - platform
Type 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[announcementsservice.
Get Services Filter] - platform_
type str - A filter to return only services underlying a specific platform.
- compartment
Id String - The OCID of the root compartment/tenancy.
- comms
Manager StringName - Filter by comms manager name
- filters List<Property Map>
- platform
Type String - A filter to return only services underlying a specific platform.
getServices Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Services
Collections List<GetServices Services Collection> - The list of services_collection.
- Comms
Manager stringName - Name of the comms manager team that manages Notifications to this service.
- Filters
List<Get
Services Filter> - Platform
Type string - The platform type this service object is related to.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Services
Collections []GetServices Services Collection - The list of services_collection.
- Comms
Manager stringName - Name of the comms manager team that manages Notifications to this service.
- Filters
[]Get
Services Filter - Platform
Type string - The platform type this service object is related to.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- services
Collections List<GetServices Services Collection> - The list of services_collection.
- comms
Manager StringName - Name of the comms manager team that manages Notifications to this service.
- filters
List<Get
Services Filter> - platform
Type String - The platform type this service object is related to.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- services
Collections GetServices Services Collection[] - The list of services_collection.
- comms
Manager stringName - Name of the comms manager team that manages Notifications to this service.
- filters
Get
Services Filter[] - platform
Type 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.Get Services Services Collection] - The list of services_collection.
- comms_
manager_ strname - Name of the comms manager team that manages Notifications to this service.
- filters
Sequence[announcementsservice.
Get Services Filter] - platform_
type str - The platform type this service object is related to.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- services
Collections List<Property Map> - The list of services_collection.
- comms
Manager StringName - Name of the comms manager team that manages Notifications to this service.
- filters List<Property Map>
- platform
Type String - The platform type this service object is related to.
Supporting Types
GetServicesFilter
GetServicesServicesCollection
GetServicesServicesCollectionItem
- Comms
Manager stringName - Filter by comms manager name
- Excluded
Realms List<string> - The list of realms where this service is not available to be used.
- Id string
- ID of the service object.
- Platform
Type string - A filter to return only services underlying a specific platform.
- Previous
Service List<string>Names - The list of previously used names for this service object.
- Service
Name string - Name of the service represented by this object.
- Short
Name string - Short name of the team to whom this service object is related.
- State string
- Current state of the service object.
- Team
Name string - Team name to which this service object is related.
- Time
Created string - The date and time when the service object was created.
- Time
Updated string - The date and time when the service object was updated.
- Type string
- Comms
Manager stringName - Filter by comms manager name
- Excluded
Realms []string - The list of realms where this service is not available to be used.
- Id string
- ID of the service object.
- Platform
Type string - A filter to return only services underlying a specific platform.
- Previous
Service []stringNames - The list of previously used names for this service object.
- Service
Name string - Name of the service represented by this object.
- Short
Name string - Short name of the team to whom this service object is related.
- State string
- Current state of the service object.
- Team
Name string - Team name to which this service object is related.
- Time
Created string - The date and time when the service object was created.
- Time
Updated string - The date and time when the service object was updated.
- Type string
- comms
Manager StringName - Filter by comms manager name
- excluded
Realms List<String> - The list of realms where this service is not available to be used.
- id String
- ID of the service object.
- platform
Type String - A filter to return only services underlying a specific platform.
- previous
Service List<String>Names - The list of previously used names for this service object.
- service
Name String - Name of the service represented by this object.
- short
Name String - Short name of the team to whom this service object is related.
- state String
- Current state of the service object.
- team
Name String - Team name to which this service object is related.
- time
Created String - The date and time when the service object was created.
- time
Updated String - The date and time when the service object was updated.
- type String
- comms
Manager stringName - Filter by comms manager name
- excluded
Realms string[] - The list of realms where this service is not available to be used.
- id string
- ID of the service object.
- platform
Type string - A filter to return only services underlying a specific platform.
- previous
Service string[]Names - The list of previously used names for this service object.
- service
Name string - Name of the service represented by this object.
- short
Name string - Short name of the team to whom this service object is related.
- state string
- Current state of the service object.
- team
Name string - Team name to which this service object is related.
- time
Created string - The date and time when the service object was created.
- time
Updated 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
- comms
Manager StringName - Filter by comms manager name
- excluded
Realms List<String> - The list of realms where this service is not available to be used.
- id String
- ID of the service object.
- platform
Type String - A filter to return only services underlying a specific platform.
- previous
Service List<String>Names - The list of previously used names for this service object.
- service
Name String - Name of the service represented by this object.
- short
Name String - Short name of the team to whom this service object is related.
- state String
- Current state of the service object.
- team
Name String - Team name to which this service object is related.
- time
Created String - The date and time when the service object was created.
- time
Updated 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.