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/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[_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:
- Compartment
Id string - The OCID for the compartment.
- Display
Name string - The display name of the resource.
- Filters
List<Get
Service Environments Filter> - Service
Environment stringId The unique identifier associated with the service environment.
Note: Not an OCID.
- Service
Environment stringType - The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- Compartment
Id string - The OCID for the compartment.
- Display
Name string - The display name of the resource.
- Filters
[]Get
Service Environments Filter - Service
Environment stringId The unique identifier associated with the service environment.
Note: Not an OCID.
- Service
Environment stringType - The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- compartment
Id String - The OCID for the compartment.
- display
Name String - The display name of the resource.
- filters
List<Get
Service Environments Filter> - service
Environment StringId The unique identifier associated with the service environment.
Note: Not an OCID.
- service
Environment StringType - The environment's service definition type. For example, "RGBUOROMS" is the service definition type for "Oracle Retail Order Management Cloud Service".
- compartment
Id string - The OCID for the compartment.
- display
Name string - The display name of the resource.
- filters
Get
Service Environments Filter[] - service
Environment stringId The unique identifier associated with the service environment.
Note: Not an OCID.
- service
Environment 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[servicemanagerproxy.
Get Service 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".
- compartment
Id String - The OCID for the compartment.
- display
Name String - The display name of the resource.
- filters List<Property Map>
- service
Environment StringId The unique identifier associated with the service environment.
Note: Not an OCID.
- service
Environment 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:
- Compartment
Id string - The OCID for the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Environment List<GetCollections Service Environments Service Environment Collection> - The list of service_environment_collection.
- Display
Name string - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- Filters
List<Get
Service Environments Filter> - Service
Environment stringId - Service
Environment stringType
- Compartment
Id string - The OCID for the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Environment []GetCollections Service Environments Service Environment Collection - The list of service_environment_collection.
- Display
Name string - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- Filters
[]Get
Service Environments Filter - Service
Environment stringId - Service
Environment stringType
- compartment
Id String - The OCID for the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Environment List<GetCollections Service Environments Service Environment Collection> - The list of service_environment_collection.
- display
Name String - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- filters
List<Get
Service Environments Filter> - service
Environment StringId - service
Environment StringType
- compartment
Id string - The OCID for the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Environment GetCollections Service Environments Service Environment Collection[] - The list of service_environment_collection.
- display
Name string - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- filters
Get
Service Environments Filter[] - service
Environment stringId - service
Environment stringType
- compartment_
id str - The OCID for the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
environment_ Sequence[servicemanagerproxy.collections Get 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[servicemanagerproxy.
Get Service Environments Filter] - service_
environment_ strid - service_
environment_ strtype
- compartment
Id String - The OCID for the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Environment List<Property Map>Collections - The list of service_environment_collection.
- display
Name String - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- filters List<Property Map>
- service
Environment StringId - service
Environment StringType
Supporting Types
GetServiceEnvironmentsFilter
GetServiceEnvironmentsServiceEnvironmentCollection
GetServiceEnvironmentsServiceEnvironmentCollectionItem
- Compartment
Id string - The OCID for the compartment.
- Console
Url string - The URL for the console.
- Dictionary<string, object>
- Dictionary<string, object>
- Id string
- Unqiue identifier for the entitlement related to the environment.
- Service
Definitions List<GetService Environments Service Environment Collection Item Service Definition> - Details for a service definition.
- Service
Environment 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.
- Subscription
Id string - The unique subscription ID associated with the service environment ID.
- Compartment
Id string - The OCID for the compartment.
- Console
Url string - The URL for the console.
- map[string]interface{}
- map[string]interface{}
- Id string
- Unqiue identifier for the entitlement related to the environment.
- Service
Definitions []GetService Environments Service Environment Collection Item Service Definition - Details for a service definition.
- Service
Environment []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.
- Subscription
Id string - The unique subscription ID associated with the service environment ID.
- compartment
Id String - The OCID for the compartment.
- console
Url String - The URL for the console.
- Map<String,Object>
- Map<String,Object>
- id String
- Unqiue identifier for the entitlement related to the environment.
- service
Definitions List<GetService Environments Service Environment Collection Item Service Definition> - Details for a service definition.
- service
Environment 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.
- subscription
Id String - The unique subscription ID associated with the service environment ID.
- compartment
Id string - The OCID for the compartment.
- console
Url string - The URL for the console.
- {[key: string]: any}
- {[key: string]: any}
- id string
- Unqiue identifier for the entitlement related to the environment.
- service
Definitions GetService Environments Service Environment Collection Item Service Definition[] - Details for a service definition.
- service
Environment 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.
- subscription
Id 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, Any]
- Mapping[str, Any]
- id str
- Unqiue identifier for the entitlement related to the environment.
- service_
definitions Sequence[servicemanagerproxy.Get Service Environments Service Environment Collection Item Service Definition] - Details for a service definition.
- service_
environment_ Sequence[servicemanagerproxy.endpoints Get 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.
- compartment
Id String - The OCID for the compartment.
- console
Url String - The URL for the console.
- Map<Any>
- Map<Any>
- id String
- Unqiue identifier for the entitlement related to the environment.
- service
Definitions List<Property Map> - Details for a service definition.
- service
Environment List<Property Map>Endpoints - Array of service environment end points.
- status String
- Status of the entitlement registration for the service.
- subscription
Id String - The unique subscription ID associated with the service environment ID.
GetServiceEnvironmentsServiceEnvironmentCollectionItemServiceDefinition
- Display
Name string - The display name of the resource.
- Short
Display 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 string - The display name of the resource.
- Short
Display 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 String - The display name of the resource.
- short
Display 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 string - The display name of the resource.
- short
Display 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".
- display
Name String - The display name of the resource.
- short
Display 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
- Environment
Type string - Service environment endpoint type.
- Url string
- Service environment instance URL.
- Description string
- Description of the environment link
- Environment
Type string - Service environment endpoint type.
- Url string
- Service environment instance URL.
- description String
- Description of the environment link
- environment
Type String - Service environment endpoint type.
- url String
- Service environment instance URL.
- description string
- Description of the environment link
- environment
Type 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
- environment
Type 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.