1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceManagerProxy
  5. getServiceEnvironments
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.ServiceManagerProxy.getServiceEnvironments

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides the list of Service Environments in Oracle Cloud Infrastructure Service Manager Proxy service.

List the details of Software as a Service (SaaS) environments provisioned by Service Manager. Information includes the service instance endpoints and service definition details.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testServiceEnvironments = oci.ServiceManagerProxy.getServiceEnvironments({
    compartmentId: compartmentId,
    displayName: serviceEnvironmentDisplayName,
    serviceEnvironmentId: testServiceEnvironment.id,
    serviceEnvironmentType: serviceEnvironmentServiceEnvironmentType,
});
Copy
import pulumi
import pulumi_oci as oci

test_service_environments = oci.ServiceManagerProxy.get_service_environments(compartment_id=compartment_id,
    display_name=service_environment_display_name,
    service_environment_id=test_service_environment["id"],
    service_environment_type=service_environment_service_environment_type)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/servicemanagerproxy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := servicemanagerproxy.GetServiceEnvironments(ctx, &servicemanagerproxy.GetServiceEnvironmentsArgs{
			CompartmentId:          compartmentId,
			DisplayName:            pulumi.StringRef(serviceEnvironmentDisplayName),
			ServiceEnvironmentId:   pulumi.StringRef(testServiceEnvironment.Id),
			ServiceEnvironmentType: pulumi.StringRef(serviceEnvironmentServiceEnvironmentType),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testServiceEnvironments = Oci.ServiceManagerProxy.GetServiceEnvironments.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = serviceEnvironmentDisplayName,
        ServiceEnvironmentId = testServiceEnvironment.Id,
        ServiceEnvironmentType = serviceEnvironmentServiceEnvironmentType,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceManagerProxy.ServiceManagerProxyFunctions;
import com.pulumi.oci.ServiceManagerProxy.inputs.GetServiceEnvironmentsArgs;
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 testServiceEnvironments = ServiceManagerProxyFunctions.getServiceEnvironments(GetServiceEnvironmentsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(serviceEnvironmentDisplayName)
            .serviceEnvironmentId(testServiceEnvironment.id())
            .serviceEnvironmentType(serviceEnvironmentServiceEnvironmentType)
            .build());

    }
}
Copy
variables:
  testServiceEnvironments:
    fn::invoke:
      function: oci:ServiceManagerProxy:getServiceEnvironments
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${serviceEnvironmentDisplayName}
        serviceEnvironmentId: ${testServiceEnvironment.id}
        serviceEnvironmentType: ${serviceEnvironmentServiceEnvironmentType}
Copy

Using getServiceEnvironments

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 getServiceEnvironments(args: GetServiceEnvironmentsArgs, opts?: InvokeOptions): Promise<GetServiceEnvironmentsResult>
function getServiceEnvironmentsOutput(args: GetServiceEnvironmentsOutputArgs, opts?: InvokeOptions): Output<GetServiceEnvironmentsResult>
Copy
def get_service_environments(compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[_servicemanagerproxy.GetServiceEnvironmentsFilter]] = None,
                             service_environment_id: Optional[str] = None,
                             service_environment_type: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetServiceEnvironmentsResult
def get_service_environments_output(compartment_id: Optional[pulumi.Input[str]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_servicemanagerproxy.GetServiceEnvironmentsFilterArgs]]]] = None,
                             service_environment_id: Optional[pulumi.Input[str]] = None,
                             service_environment_type: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetServiceEnvironmentsResult]
Copy
func GetServiceEnvironments(ctx *Context, args *GetServiceEnvironmentsArgs, opts ...InvokeOption) (*GetServiceEnvironmentsResult, error)
func GetServiceEnvironmentsOutput(ctx *Context, args *GetServiceEnvironmentsOutputArgs, opts ...InvokeOption) GetServiceEnvironmentsResultOutput
Copy

> Note: This function is named GetServiceEnvironments in the Go SDK.

public static class GetServiceEnvironments 
{
    public static Task<GetServiceEnvironmentsResult> InvokeAsync(GetServiceEnvironmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceEnvironmentsResult> Invoke(GetServiceEnvironmentsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServiceEnvironmentsResult> getServiceEnvironments(GetServiceEnvironmentsArgs args, InvokeOptions options)
public static Output<GetServiceEnvironmentsResult> getServiceEnvironments(GetServiceEnvironmentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ServiceManagerProxy/getServiceEnvironments:getServiceEnvironments
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID for the compartment.
DisplayName string
The display name of the resource.
Filters Changes to this property will trigger replacement. List<GetServiceEnvironmentsFilter>
ServiceEnvironmentId string

The unique identifier associated with the service environment.

Note: Not an OCID.

ServiceEnvironmentType string
The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
CompartmentId This property is required. string
The OCID for the compartment.
DisplayName string
The display name of the resource.
Filters Changes to this property will trigger replacement. []GetServiceEnvironmentsFilter
ServiceEnvironmentId string

The unique identifier associated with the service environment.

Note: Not an OCID.

ServiceEnvironmentType string
The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
compartmentId This property is required. String
The OCID for the compartment.
displayName String
The display name of the resource.
filters Changes to this property will trigger replacement. List<GetServiceEnvironmentsFilter>
serviceEnvironmentId String

The unique identifier associated with the service environment.

Note: Not an OCID.

serviceEnvironmentType String
The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
compartmentId This property is required. string
The OCID for the compartment.
displayName string
The display name of the resource.
filters Changes to this property will trigger replacement. GetServiceEnvironmentsFilter[]
serviceEnvironmentId string

The unique identifier associated with the service environment.

Note: Not an OCID.

serviceEnvironmentType string
The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
compartment_id This property is required. str
The OCID for the compartment.
display_name str
The display name of the resource.
filters Changes to this property will trigger replacement. Sequence[servicemanagerproxy.GetServiceEnvironmentsFilter]
service_environment_id str

The unique identifier associated with the service environment.

Note: Not an OCID.

service_environment_type str
The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
compartmentId This property is required. String
The OCID for the compartment.
displayName String
The display name of the resource.
filters Changes to this property will trigger replacement. List<Property Map>
serviceEnvironmentId String

The unique identifier associated with the service environment.

Note: Not an OCID.

serviceEnvironmentType String
The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".

getServiceEnvironments Result

The following output properties are available:

CompartmentId string
The OCID for the compartment.
Id string
The provider-assigned unique ID for this managed resource.
ServiceEnvironmentCollections List<GetServiceEnvironmentsServiceEnvironmentCollection>
The list of service_environment_collection.
DisplayName string
Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
Filters List<GetServiceEnvironmentsFilter>
ServiceEnvironmentId string
ServiceEnvironmentType string
CompartmentId string
The OCID for the compartment.
Id string
The provider-assigned unique ID for this managed resource.
ServiceEnvironmentCollections []GetServiceEnvironmentsServiceEnvironmentCollection
The list of service_environment_collection.
DisplayName string
Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
Filters []GetServiceEnvironmentsFilter
ServiceEnvironmentId string
ServiceEnvironmentType string
compartmentId String
The OCID for the compartment.
id String
The provider-assigned unique ID for this managed resource.
serviceEnvironmentCollections List<GetServiceEnvironmentsServiceEnvironmentCollection>
The list of service_environment_collection.
displayName String
Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
filters List<GetServiceEnvironmentsFilter>
serviceEnvironmentId String
serviceEnvironmentType String
compartmentId string
The OCID for the compartment.
id string
The provider-assigned unique ID for this managed resource.
serviceEnvironmentCollections GetServiceEnvironmentsServiceEnvironmentCollection[]
The list of service_environment_collection.
displayName string
Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
filters GetServiceEnvironmentsFilter[]
serviceEnvironmentId string
serviceEnvironmentType string
compartment_id str
The OCID for the compartment.
id str
The provider-assigned unique ID for this managed resource.
service_environment_collections Sequence[servicemanagerproxy.GetServiceEnvironmentsServiceEnvironmentCollection]
The list of service_environment_collection.
display_name str
Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
filters Sequence[servicemanagerproxy.GetServiceEnvironmentsFilter]
service_environment_id str
service_environment_type str
compartmentId String
The OCID for the compartment.
id String
The provider-assigned unique ID for this managed resource.
serviceEnvironmentCollections List<Property Map>
The list of service_environment_collection.
displayName String
Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
filters List<Property Map>
serviceEnvironmentId String
serviceEnvironmentType String

Supporting Types

GetServiceEnvironmentsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetServiceEnvironmentsServiceEnvironmentCollection

items This property is required. List<Property Map>

GetServiceEnvironmentsServiceEnvironmentCollectionItem

CompartmentId This property is required. string
The OCID for the compartment.
ConsoleUrl This property is required. string
The URL for the console.
DefinedTags This property is required. Dictionary<string, string>
FreeformTags This property is required. Dictionary<string, string>
Id This property is required. string
Unqiue identifier for the entitlement related to the environment.
ServiceDefinitions This property is required. List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition>
Details for a service definition.
ServiceEnvironmentEndpoints This property is required. List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint>
Array of service environment end points.
Status This property is required. string
Status of the entitlement registration for the service.
SubscriptionId This property is required. string
The unique subscription ID associated with the service environment ID.
CompartmentId This property is required. string
The OCID for the compartment.
ConsoleUrl This property is required. string
The URL for the console.
DefinedTags This property is required. map[string]string
FreeformTags This property is required. map[string]string
Id This property is required. string
Unqiue identifier for the entitlement related to the environment.
ServiceDefinitions This property is required. []GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition
Details for a service definition.
ServiceEnvironmentEndpoints This property is required. []GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint
Array of service environment end points.
Status This property is required. string
Status of the entitlement registration for the service.
SubscriptionId This property is required. string
The unique subscription ID associated with the service environment ID.
compartmentId This property is required. String
The OCID for the compartment.
consoleUrl This property is required. String
The URL for the console.
definedTags This property is required. Map<String,String>
freeformTags This property is required. Map<String,String>
id This property is required. String
Unqiue identifier for the entitlement related to the environment.
serviceDefinitions This property is required. List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition>
Details for a service definition.
serviceEnvironmentEndpoints This property is required. List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint>
Array of service environment end points.
status This property is required. String
Status of the entitlement registration for the service.
subscriptionId This property is required. String
The unique subscription ID associated with the service environment ID.
compartmentId This property is required. string
The OCID for the compartment.
consoleUrl This property is required. string
The URL for the console.
definedTags This property is required. {[key: string]: string}
freeformTags This property is required. {[key: string]: string}
id This property is required. string
Unqiue identifier for the entitlement related to the environment.
serviceDefinitions This property is required. GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition[]
Details for a service definition.
serviceEnvironmentEndpoints This property is required. GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint[]
Array of service environment end points.
status This property is required. string
Status of the entitlement registration for the service.
subscriptionId This property is required. string
The unique subscription ID associated with the service environment ID.
compartment_id This property is required. str
The OCID for the compartment.
console_url This property is required. str
The URL for the console.
defined_tags This property is required. Mapping[str, str]
freeform_tags This property is required. Mapping[str, str]
id This property is required. str
Unqiue identifier for the entitlement related to the environment.
service_definitions This property is required. Sequence[servicemanagerproxy.GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition]
Details for a service definition.
service_environment_endpoints This property is required. Sequence[servicemanagerproxy.GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint]
Array of service environment end points.
status This property is required. str
Status of the entitlement registration for the service.
subscription_id This property is required. str
The unique subscription ID associated with the service environment ID.
compartmentId This property is required. String
The OCID for the compartment.
consoleUrl This property is required. String
The URL for the console.
definedTags This property is required. Map<String>
freeformTags This property is required. Map<String>
id This property is required. String
Unqiue identifier for the entitlement related to the environment.
serviceDefinitions This property is required. List<Property Map>
Details for a service definition.
serviceEnvironmentEndpoints This property is required. List<Property Map>
Array of service environment end points.
status This property is required. String
Status of the entitlement registration for the service.
subscriptionId This property is required. String
The unique subscription ID associated with the service environment ID.

GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition

DisplayName This property is required. string
The display name of the resource.
ShortDisplayName This property is required. string
Short display name of the service. For example, "Retail Order Management".
Type This property is required. string
The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
DisplayName This property is required. string
The display name of the resource.
ShortDisplayName This property is required. string
Short display name of the service. For example, "Retail Order Management".
Type This property is required. string
The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
displayName This property is required. String
The display name of the resource.
shortDisplayName This property is required. String
Short display name of the service. For example, "Retail Order Management".
type This property is required. String
The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
displayName This property is required. string
The display name of the resource.
shortDisplayName This property is required. string
Short display name of the service. For example, "Retail Order Management".
type This property is required. string
The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
display_name This property is required. str
The display name of the resource.
short_display_name This property is required. str
Short display name of the service. For example, "Retail Order Management".
type This property is required. str
The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
displayName This property is required. String
The display name of the resource.
shortDisplayName This property is required. String
Short display name of the service. For example, "Retail Order Management".
type This property is required. String
The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".

GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint

Description This property is required. string
Description of the environment link
EnvironmentType This property is required. string
Service environment endpoint type.
Url This property is required. string
Service environment instance URL.
Description This property is required. string
Description of the environment link
EnvironmentType This property is required. string
Service environment endpoint type.
Url This property is required. string
Service environment instance URL.
description This property is required. String
Description of the environment link
environmentType This property is required. String
Service environment endpoint type.
url This property is required. String
Service environment instance URL.
description This property is required. string
Description of the environment link
environmentType This property is required. string
Service environment endpoint type.
url This property is required. string
Service environment instance URL.
description This property is required. str
Description of the environment link
environment_type This property is required. str
Service environment endpoint type.
url This property is required. str
Service environment instance URL.
description This property is required. String
Description of the environment link
environmentType This property is required. String
Service environment endpoint type.
url This property is required. String
Service environment instance URL.

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 v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi