oci.ServiceManagerProxy.getServiceEnvironments
Explore with Pulumi AI
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testServiceEnvironments:
    fn::invoke:
      function: oci:ServiceManagerProxy:getServiceEnvironments
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${serviceEnvironmentDisplayName}
        serviceEnvironmentId: ${testServiceEnvironment.id}
        serviceEnvironmentType: ${serviceEnvironmentServiceEnvironmentType}
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>def get_service_environments(compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[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[GetServiceEnvironmentsFilterArgs]]]] = None,
                             service_environment_id: Optional[pulumi.Input[str]] = None,
                             service_environment_type: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetServiceEnvironmentsResult]func GetServiceEnvironments(ctx *Context, args *GetServiceEnvironmentsArgs, opts ...InvokeOption) (*GetServiceEnvironmentsResult, error)
func GetServiceEnvironmentsOutput(ctx *Context, args *GetServiceEnvironmentsOutputArgs, opts ...InvokeOption) GetServiceEnvironmentsResultOutput> 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)
}public static CompletableFuture<GetServiceEnvironmentsResult> getServiceEnvironments(GetServiceEnvironmentsArgs args, InvokeOptions options)
public static Output<GetServiceEnvironmentsResult> getServiceEnvironments(GetServiceEnvironmentsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceManagerProxy/getServiceEnvironments:getServiceEnvironments
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID for the compartment.
- DisplayName string
- The display name of the resource.
- Filters
List<GetService Environments Filter> 
- ServiceEnvironment stringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- ServiceEnvironment stringType 
- The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- CompartmentId string
- The OCID for the compartment.
- DisplayName string
- The display name of the resource.
- Filters
[]GetService Environments Filter 
- ServiceEnvironment stringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- ServiceEnvironment stringType 
- The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- compartmentId String
- The OCID for the compartment.
- displayName String
- The display name of the resource.
- filters
List<GetService Environments Filter> 
- serviceEnvironment StringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- serviceEnvironment StringType 
- The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- compartmentId string
- The OCID for the compartment.
- displayName string
- The display name of the resource.
- filters
GetService Environments Filter[] 
- serviceEnvironment stringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- serviceEnvironment stringType 
- The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- compartment_id str
- The OCID for the compartment.
- display_name str
- The display name of the resource.
- filters
Sequence[GetService Environments Filter] 
- service_environment_ strid 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- service_environment_ strtype 
- The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- compartmentId String
- The OCID for the compartment.
- displayName String
- The display name of the resource.
- filters List<Property Map>
- serviceEnvironment StringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- serviceEnvironment StringType 
- 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.
- ServiceEnvironment List<GetCollections Service Environments Service Environment Collection> 
- The list of service_environment_collection.
- DisplayName string
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- Filters
List<GetService Environments Filter> 
- ServiceEnvironment stringId 
- ServiceEnvironment stringType 
- CompartmentId string
- The OCID for the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceEnvironment []GetCollections Service Environments Service Environment Collection 
- The list of service_environment_collection.
- DisplayName string
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- Filters
[]GetService Environments Filter 
- ServiceEnvironment stringId 
- ServiceEnvironment stringType 
- compartmentId String
- The OCID for the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceEnvironment List<GetCollections Service Environments Service Environment Collection> 
- The list of service_environment_collection.
- displayName String
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- filters
List<GetService Environments Filter> 
- serviceEnvironment StringId 
- serviceEnvironment StringType 
- compartmentId string
- The OCID for the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- serviceEnvironment GetCollections Service Environments Service Environment Collection[] 
- The list of service_environment_collection.
- displayName string
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- filters
GetService Environments Filter[] 
- serviceEnvironment stringId 
- serviceEnvironment stringType 
- compartment_id str
- The OCID for the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- service_environment_ Sequence[Getcollections Service Environments Service Environment Collection] 
- The list of service_environment_collection.
- display_name str
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- filters
Sequence[GetService Environments Filter] 
- service_environment_ strid 
- service_environment_ strtype 
- compartmentId String
- The OCID for the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceEnvironment List<Property Map>Collections 
- 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>
- serviceEnvironment StringId 
- serviceEnvironment StringType 
Supporting Types
GetServiceEnvironmentsFilter   
GetServiceEnvironmentsServiceEnvironmentCollection     
GetServiceEnvironmentsServiceEnvironmentCollectionItem      
- CompartmentId string
- The OCID for the compartment.
- ConsoleUrl string
- The URL for the console.
- Dictionary<string, string>
- Dictionary<string, string>
- Id string
- Unqiue identifier for the entitlement related to the environment.
- ServiceDefinitions List<GetService Environments Service Environment Collection Item Service Definition> 
- Details for a service definition.
- ServiceEnvironment List<GetEndpoints Service Environments Service Environment Collection Item Service Environment Endpoint> 
- Array of service environment end points.
- Status string
- Status of the entitlement registration for the service.
- SubscriptionId string
- The unique subscription ID associated with the service environment ID.
- CompartmentId string
- The OCID for the compartment.
- ConsoleUrl string
- The URL for the console.
- map[string]string
- map[string]string
- Id string
- Unqiue identifier for the entitlement related to the environment.
- ServiceDefinitions []GetService Environments Service Environment Collection Item Service Definition 
- Details for a service definition.
- ServiceEnvironment []GetEndpoints Service Environments Service Environment Collection Item Service Environment Endpoint 
- Array of service environment end points.
- Status string
- Status of the entitlement registration for the service.
- SubscriptionId string
- The unique subscription ID associated with the service environment ID.
- compartmentId String
- The OCID for the compartment.
- consoleUrl String
- The URL for the console.
- Map<String,String>
- Map<String,String>
- id String
- Unqiue identifier for the entitlement related to the environment.
- serviceDefinitions List<GetService Environments Service Environment Collection Item Service Definition> 
- Details for a service definition.
- serviceEnvironment List<GetEndpoints Service Environments Service Environment Collection Item Service Environment Endpoint> 
- Array of service environment end points.
- status String
- Status of the entitlement registration for the service.
- subscriptionId String
- The unique subscription ID associated with the service environment ID.
- compartmentId string
- The OCID for the compartment.
- consoleUrl string
- The URL for the console.
- {[key: string]: string}
- {[key: string]: string}
- id string
- Unqiue identifier for the entitlement related to the environment.
- serviceDefinitions GetService Environments Service Environment Collection Item Service Definition[] 
- Details for a service definition.
- serviceEnvironment GetEndpoints Service Environments Service Environment Collection Item Service Environment Endpoint[] 
- Array of service environment end points.
- status string
- Status of the entitlement registration for the service.
- subscriptionId string
- The unique subscription ID associated with the service environment ID.
- compartment_id str
- The OCID for the compartment.
- console_url str
- The URL for the console.
- Mapping[str, str]
- Mapping[str, str]
- id str
- Unqiue identifier for the entitlement related to the environment.
- service_definitions Sequence[GetService Environments Service Environment Collection Item Service Definition] 
- Details for a service definition.
- service_environment_ Sequence[Getendpoints Service Environments Service Environment Collection Item Service Environment Endpoint] 
- Array of service environment end points.
- status str
- Status of the entitlement registration for the service.
- subscription_id str
- The unique subscription ID associated with the service environment ID.
- compartmentId String
- The OCID for the compartment.
- consoleUrl String
- The URL for the console.
- Map<String>
- Map<String>
- id String
- Unqiue identifier for the entitlement related to the environment.
- serviceDefinitions List<Property Map>
- Details for a service definition.
- serviceEnvironment List<Property Map>Endpoints 
- Array of service environment end points.
- status String
- Status of the entitlement registration for the service.
- subscriptionId String
- The unique subscription ID associated with the service environment ID.
GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition        
- DisplayName string
- The display name of the resource.
- ShortDisplay stringName 
- Short display name of the service. For example, "Retail Order Management".
- Type string
- The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
- DisplayName string
- The display name of the resource.
- ShortDisplay stringName 
- Short display name of the service. For example, "Retail Order Management".
- Type string
- The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
- displayName String
- The display name of the resource.
- shortDisplay StringName 
- Short display name of the service. For example, "Retail Order Management".
- type String
- The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
- displayName string
- The display name of the resource.
- shortDisplay stringName 
- Short display name of the service. For example, "Retail Order Management".
- type 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 str
- The display name of the resource.
- short_display_ strname 
- Short display name of the service. For example, "Retail Order Management".
- type str
- The service definition type. For example, a service definition type "RGBUOROMS" would be for the service "Oracle Retail Order Management Cloud Service".
- displayName String
- The display name of the resource.
- shortDisplay StringName 
- Short display name of the service. For example, "Retail Order Management".
- type 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 string
- Description of the environment link
- EnvironmentType string
- Service environment endpoint type.
- Url string
- Service environment instance URL.
- Description string
- Description of the environment link
- EnvironmentType string
- Service environment endpoint type.
- Url string
- Service environment instance URL.
- description String
- Description of the environment link
- environmentType String
- Service environment endpoint type.
- url String
- Service environment instance URL.
- description string
- Description of the environment link
- environmentType string
- Service environment endpoint type.
- url string
- Service environment instance URL.
- description str
- Description of the environment link
- environment_type str
- Service environment endpoint type.
- url str
- Service environment instance URL.
- description String
- Description of the environment link
- environmentType String
- Service environment endpoint type.
- url String
- Service environment instance URL.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.