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/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:
- Compartment
Id string - The OCID for the compartment.
- Service
Environment stringId The unique identifier associated with the service environment.
Note: Not an OCID.
- Compartment
Id string - The OCID for the compartment.
- Service
Environment stringId The unique identifier associated with the service environment.
Note: Not an OCID.
- compartment
Id String - The OCID for the compartment.
- service
Environment StringId The unique identifier associated with the service environment.
Note: Not an OCID.
- compartment
Id string - The OCID for the compartment.
- service
Environment 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.
- compartment
Id String - The OCID for the compartment.
- service
Environment StringId The unique identifier associated with the service environment.
Note: Not an OCID.
getServiceEnvironment Result
The following output properties are available:
- Compartment
Id string - The OCID for the compartment.
- Console
Url string - The URL for the console.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Definitions List<GetService Environment Service Definition> - Details for a service definition.
- Service
Environment List<GetEndpoints Service Environment Service Environment Endpoint> - Array of service environment end points.
- Service
Environment stringId - 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Definitions []GetService Environment Service Definition - Details for a service definition.
- Service
Environment []GetEndpoints Service Environment Service Environment Endpoint - Array of service environment end points.
- Service
Environment stringId - 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.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Definitions List<GetService Environment Service Definition> - Details for a service definition.
- service
Environment List<GetEndpoints Service Environment Service Environment Endpoint> - Array of service environment end points.
- service
Environment StringId - 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.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Definitions GetService Environment Service Definition[] - Details for a service definition.
- service
Environment GetEndpoints Service Environment Service Environment Endpoint[] - Array of service environment end points.
- service
Environment stringId - 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.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
definitions Sequence[servicemanagerproxy.Get Service Environment Service Definition] - Details for a service definition.
- service_
environment_ Sequence[servicemanagerproxy.endpoints Get 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.
- compartment
Id String - The OCID for the compartment.
- console
Url String - The URL for the console.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Definitions List<Property Map> - Details for a service definition.
- service
Environment List<Property Map>Endpoints - Array of service environment end points.
- service
Environment StringId - status String
- Status of the entitlement registration for the service.
- subscription
Id String - The unique subscription ID associated with the service environment ID.
Supporting Types
GetServiceEnvironmentServiceDefinition
- Display
Name string - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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 - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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 - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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 - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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 - 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".
- display
Name String - Display name of the service. For example, "Oracle Retail Order Management Cloud Service".
- 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".
GetServiceEnvironmentServiceEnvironmentEndpoint
- 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.