1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceManagerProxy
  5. getServiceEnvironments
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.ServiceManagerProxy.getServiceEnvironments

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 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: _var.compartment_id,
        displayName: _var.service_environment_display_name,
        serviceEnvironmentId: oci_service_manager_proxy_service_environment.test_service_environment.id,
        serviceEnvironmentType: _var.service_environment_service_environment_type,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_service_environments = oci.ServiceManagerProxy.get_service_environments(compartment_id=var["compartment_id"],
        display_name=var["service_environment_display_name"],
        service_environment_id=oci_service_manager_proxy_service_environment["test_service_environment"]["id"],
        service_environment_type=var["service_environment_service_environment_type"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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:          _var.Compartment_id,
    			DisplayName:            pulumi.StringRef(_var.Service_environment_display_name),
    			ServiceEnvironmentId:   pulumi.StringRef(oci_service_manager_proxy_service_environment.Test_service_environment.Id),
    			ServiceEnvironmentType: pulumi.StringRef(_var.Service_environment_service_environment_type),
    		}, 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 = @var.Compartment_id,
            DisplayName = @var.Service_environment_display_name,
            ServiceEnvironmentId = oci_service_manager_proxy_service_environment.Test_service_environment.Id,
            ServiceEnvironmentType = @var.Service_environment_service_environment_type,
        });
    
    });
    
    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(var_.compartment_id())
                .displayName(var_.service_environment_display_name())
                .serviceEnvironmentId(oci_service_manager_proxy_service_environment.test_service_environment().id())
                .serviceEnvironmentType(var_.service_environment_service_environment_type())
                .build());
    
        }
    }
    
    variables:
      testServiceEnvironments:
        fn::invoke:
          Function: oci:ServiceManagerProxy:getServiceEnvironments
          Arguments:
            compartmentId: ${var.compartment_id}
            displayName: ${var.service_environment_display_name}
            serviceEnvironmentId: ${oci_service_manager_proxy_service_environment.test_service_environment.id}
            serviceEnvironmentType: ${var.service_environment_service_environment_type}
    

    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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ServiceManagerProxy/getServiceEnvironments:getServiceEnvironments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID for the compartment.
    DisplayName string
    The display name of the resource.
    Filters 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 string
    The OCID for the compartment.
    DisplayName string
    The display name of the resource.
    Filters []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 String
    The OCID for the compartment.
    displayName String
    The display name of the resource.
    filters 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 string
    The OCID for the compartment.
    displayName string
    The display name of the resource.
    filters 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 str
    The OCID for the compartment.
    display_name str
    The display name of the resource.
    filters 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 String
    The OCID for the compartment.
    displayName String
    The display name of the resource.
    filters 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 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

    GetServiceEnvironmentsServiceEnvironmentCollection

    GetServiceEnvironmentsServiceEnvironmentCollectionItem

    CompartmentId string
    The OCID for the compartment.
    ConsoleUrl string
    The URL for the console.
    DefinedTags Dictionary<string, object>
    FreeformTags Dictionary<string, object>
    Id string
    Unqiue identifier for the entitlement related to the environment.
    ServiceDefinitions List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition>
    Details for a service definition.
    ServiceEnvironmentEndpoints List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint>
    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.
    DefinedTags map[string]interface{}
    FreeformTags map[string]interface{}
    Id string
    Unqiue identifier for the entitlement related to the environment.
    ServiceDefinitions []GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition
    Details for a service definition.
    ServiceEnvironmentEndpoints []GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint
    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.
    definedTags Map<String,Object>
    freeformTags Map<String,Object>
    id String
    Unqiue identifier for the entitlement related to the environment.
    serviceDefinitions List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition>
    Details for a service definition.
    serviceEnvironmentEndpoints List<GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint>
    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.
    definedTags {[key: string]: any}
    freeformTags {[key: string]: any}
    id string
    Unqiue identifier for the entitlement related to the environment.
    serviceDefinitions GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition[]
    Details for a service definition.
    serviceEnvironmentEndpoints GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint[]
    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.
    defined_tags Mapping[str, Any]
    freeform_tags Mapping[str, Any]
    id str
    Unqiue identifier for the entitlement related to the environment.
    service_definitions Sequence[servicemanagerproxy.GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition]
    Details for a service definition.
    service_environment_endpoints Sequence[servicemanagerproxy.GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceEnvironmentEndpoint]
    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.
    definedTags Map<Any>
    freeformTags Map<Any>
    id String
    Unqiue identifier for the entitlement related to the environment.
    serviceDefinitions List<Property Map>
    Details for a service definition.
    serviceEnvironmentEndpoints List<Property Map>
    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.
    ShortDisplayName string
    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.
    ShortDisplayName string
    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.
    shortDisplayName String
    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.
    shortDisplayName string
    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_name str
    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.
    shortDisplayName String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi