1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ServiceManagerProxy
  5. getServiceEnvironment
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.ServiceManagerProxy.getServiceEnvironment

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

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

    The following arguments are supported:

    CompartmentId string
    The OCID for the compartment.
    ServiceEnvironmentId string

    The unique identifier associated with the service environment.

    Note: Not an OCID.

    CompartmentId string
    The OCID for the compartment.
    ServiceEnvironmentId string

    The unique identifier associated with the service environment.

    Note: Not an OCID.

    compartmentId String
    The OCID for the compartment.
    serviceEnvironmentId String

    The unique identifier associated with the service environment.

    Note: Not an OCID.

    compartmentId string
    The OCID for the compartment.
    serviceEnvironmentId string

    The unique identifier associated with the service environment.

    Note: Not an OCID.

    compartment_id str
    The OCID for the compartment.
    service_environment_id str

    The unique identifier associated with the service environment.

    Note: Not an OCID.

    compartmentId String
    The OCID for the compartment.
    serviceEnvironmentId String

    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<GetServiceEnvironmentServiceDefinition>
    Details for a service definition.
    ServiceEnvironmentEndpoints List<GetServiceEnvironmentServiceEnvironmentEndpoint>
    Array of service environment end points.
    ServiceEnvironmentId string
    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 []GetServiceEnvironmentServiceDefinition
    Details for a service definition.
    ServiceEnvironmentEndpoints []GetServiceEnvironmentServiceEnvironmentEndpoint
    Array of service environment end points.
    ServiceEnvironmentId string
    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<GetServiceEnvironmentServiceDefinition>
    Details for a service definition.
    serviceEnvironmentEndpoints List<GetServiceEnvironmentServiceEnvironmentEndpoint>
    Array of service environment end points.
    serviceEnvironmentId String
    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 GetServiceEnvironmentServiceDefinition[]
    Details for a service definition.
    serviceEnvironmentEndpoints GetServiceEnvironmentServiceEnvironmentEndpoint[]
    Array of service environment end points.
    serviceEnvironmentId string
    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[servicemanagerproxy.GetServiceEnvironmentServiceDefinition]
    Details for a service definition.
    service_environment_endpoints Sequence[servicemanagerproxy.GetServiceEnvironmentServiceEnvironmentEndpoint]
    Array of service environment end points.
    service_environment_id str
    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.
    serviceEnvironmentEndpoints List<Property Map>
    Array of service environment end points.
    serviceEnvironmentId String
    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".
    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
    Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
    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
    Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
    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
    Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
    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
    Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
    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
    Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
    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".

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi