oci.ServiceManagerProxy.getServiceEnvironment
Explore with Pulumi AI
This data source provides details about a specific Service Environment resource in Oracle Cloud Infrastructure Service Manager Proxy service.
Get the detailed information for a specific service environment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testServiceEnvironment = oci.ServiceManagerProxy.getServiceEnvironment({
    compartmentId: compartmentId,
    serviceEnvironmentId: testServiceEnvironmentOciServiceManagerProxyServiceEnvironment.id,
});
import pulumi
import pulumi_oci as oci
test_service_environment = oci.ServiceManagerProxy.get_service_environment(compartment_id=compartment_id,
    service_environment_id=test_service_environment_oci_service_manager_proxy_service_environment["id"])
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.GetServiceEnvironment(ctx, &servicemanagerproxy.GetServiceEnvironmentArgs{
			CompartmentId:        compartmentId,
			ServiceEnvironmentId: testServiceEnvironmentOciServiceManagerProxyServiceEnvironment.Id,
		}, 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 testServiceEnvironment = Oci.ServiceManagerProxy.GetServiceEnvironment.Invoke(new()
    {
        CompartmentId = compartmentId,
        ServiceEnvironmentId = testServiceEnvironmentOciServiceManagerProxyServiceEnvironment.Id,
    });
});
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.GetServiceEnvironmentArgs;
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 testServiceEnvironment = ServiceManagerProxyFunctions.getServiceEnvironment(GetServiceEnvironmentArgs.builder()
            .compartmentId(compartmentId)
            .serviceEnvironmentId(testServiceEnvironmentOciServiceManagerProxyServiceEnvironment.id())
            .build());
    }
}
variables:
  testServiceEnvironment:
    fn::invoke:
      function: oci:ServiceManagerProxy:getServiceEnvironment
      arguments:
        compartmentId: ${compartmentId}
        serviceEnvironmentId: ${testServiceEnvironmentOciServiceManagerProxyServiceEnvironment.id}
Using getServiceEnvironment
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 getServiceEnvironment(args: GetServiceEnvironmentArgs, opts?: InvokeOptions): Promise<GetServiceEnvironmentResult>
function getServiceEnvironmentOutput(args: GetServiceEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetServiceEnvironmentResult>def get_service_environment(compartment_id: Optional[str] = None,
                            service_environment_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServiceEnvironmentResult
def get_service_environment_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            service_environment_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetServiceEnvironmentResult]func GetServiceEnvironment(ctx *Context, args *GetServiceEnvironmentArgs, opts ...InvokeOption) (*GetServiceEnvironmentResult, error)
func GetServiceEnvironmentOutput(ctx *Context, args *GetServiceEnvironmentOutputArgs, opts ...InvokeOption) GetServiceEnvironmentResultOutput> Note: This function is named GetServiceEnvironment in the Go SDK.
public static class GetServiceEnvironment 
{
    public static Task<GetServiceEnvironmentResult> InvokeAsync(GetServiceEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceEnvironmentResult> Invoke(GetServiceEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceEnvironmentResult> getServiceEnvironment(GetServiceEnvironmentArgs args, InvokeOptions options)
public static Output<GetServiceEnvironmentResult> getServiceEnvironment(GetServiceEnvironmentArgs args, InvokeOptions options)
fn::invoke:
  function: oci:ServiceManagerProxy/getServiceEnvironment:getServiceEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID for the compartment.
- ServiceEnvironment stringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- CompartmentId string
- The OCID for the compartment.
- ServiceEnvironment stringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- compartmentId String
- The OCID for the compartment.
- serviceEnvironment StringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- compartmentId string
- The OCID for the compartment.
- serviceEnvironment stringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- compartment_id str
- The OCID for the compartment.
- service_environment_ strid 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
- compartmentId String
- The OCID for the compartment.
- serviceEnvironment StringId 
- The unique identifier associated with the service environment. - Note: Not an OCID. 
getServiceEnvironment Result
The following output properties are available:
- CompartmentId string
- The OCID for the compartment.
- ConsoleUrl string
- The URL for the console.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceDefinitions List<GetService Environment Service Definition> 
- Details for a service definition.
- ServiceEnvironment List<GetEndpoints Service Environment Service Environment Endpoint> 
- Array of service environment end points.
- ServiceEnvironment stringId 
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceDefinitions []GetService Environment Service Definition 
- Details for a service definition.
- ServiceEnvironment []GetEndpoints Service Environment Service Environment Endpoint 
- Array of service environment end points.
- ServiceEnvironment stringId 
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceDefinitions List<GetService Environment Service Definition> 
- Details for a service definition.
- serviceEnvironment List<GetEndpoints Service Environment Service Environment Endpoint> 
- Array of service environment end points.
- serviceEnvironment StringId 
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- serviceDefinitions GetService Environment Service Definition[] 
- Details for a service definition.
- serviceEnvironment GetEndpoints Service Environment Service Environment Endpoint[] 
- Array of service environment end points.
- serviceEnvironment stringId 
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- service_definitions Sequence[GetService Environment Service Definition] 
- Details for a service definition.
- service_environment_ Sequence[Getendpoints Service Environment Service Environment Endpoint] 
- Array of service environment end points.
- service_environment_ strid 
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceDefinitions List<Property Map>
- Details for a service definition.
- serviceEnvironment List<Property Map>Endpoints 
- Array of service environment end points.
- serviceEnvironment StringId 
- status String
- Status of the entitlement registration for the service.
- subscriptionId String
- The unique subscription ID associated with the service environment ID.
Supporting Types
GetServiceEnvironmentServiceDefinition    
- DisplayName string
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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
- Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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".
GetServiceEnvironmentServiceEnvironmentEndpoint     
- 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.