Viewing docs for Oracle Cloud Infrastructure v4.5.1
published on Friday, Apr 3, 2026 by Pulumi
published on Friday, Apr 3, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.5.1
published on Friday, Apr 3, 2026 by Pulumi
published on Friday, Apr 3, 2026 by Pulumi
This data source provides details about a specific Subscription Mapping resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Get the subscription mapping details by subscription mapping ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubscriptionMapping = oci.Tenantmanagercontrolplane.getSubscriptionMapping({
subscriptionMappingId: testSubscriptionMappingOciTenantmanagercontrolplaneSubscriptionMapping.id,
});
import pulumi
import pulumi_oci as oci
test_subscription_mapping = oci.Tenantmanagercontrolplane.get_subscription_mapping(subscription_mapping_id=test_subscription_mapping_oci_tenantmanagercontrolplane_subscription_mapping["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/tenantmanagercontrolplane"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tenantmanagercontrolplane.GetSubscriptionMapping(ctx, &tenantmanagercontrolplane.GetSubscriptionMappingArgs{
SubscriptionMappingId: testSubscriptionMappingOciTenantmanagercontrolplaneSubscriptionMapping.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 testSubscriptionMapping = Oci.Tenantmanagercontrolplane.GetSubscriptionMapping.Invoke(new()
{
SubscriptionMappingId = testSubscriptionMappingOciTenantmanagercontrolplaneSubscriptionMapping.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Tenantmanagercontrolplane.TenantmanagercontrolplaneFunctions;
import com.pulumi.oci.Tenantmanagercontrolplane.inputs.GetSubscriptionMappingArgs;
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 testSubscriptionMapping = TenantmanagercontrolplaneFunctions.getSubscriptionMapping(GetSubscriptionMappingArgs.builder()
.subscriptionMappingId(testSubscriptionMappingOciTenantmanagercontrolplaneSubscriptionMapping.id())
.build());
}
}
variables:
testSubscriptionMapping:
fn::invoke:
function: oci:Tenantmanagercontrolplane:getSubscriptionMapping
arguments:
subscriptionMappingId: ${testSubscriptionMappingOciTenantmanagercontrolplaneSubscriptionMapping.id}
Using getSubscriptionMapping
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 getSubscriptionMapping(args: GetSubscriptionMappingArgs, opts?: InvokeOptions): Promise<GetSubscriptionMappingResult>
function getSubscriptionMappingOutput(args: GetSubscriptionMappingOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionMappingResult>def get_subscription_mapping(subscription_mapping_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionMappingResult
def get_subscription_mapping_output(subscription_mapping_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionMappingResult]func LookupSubscriptionMapping(ctx *Context, args *LookupSubscriptionMappingArgs, opts ...InvokeOption) (*LookupSubscriptionMappingResult, error)
func LookupSubscriptionMappingOutput(ctx *Context, args *LookupSubscriptionMappingOutputArgs, opts ...InvokeOption) LookupSubscriptionMappingResultOutput> Note: This function is named LookupSubscriptionMapping in the Go SDK.
public static class GetSubscriptionMapping
{
public static Task<GetSubscriptionMappingResult> InvokeAsync(GetSubscriptionMappingArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionMappingResult> Invoke(GetSubscriptionMappingInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubscriptionMappingResult> getSubscriptionMapping(GetSubscriptionMappingArgs args, InvokeOptions options)
public static Output<GetSubscriptionMappingResult> getSubscriptionMapping(GetSubscriptionMappingArgs args, InvokeOptions options)
fn::invoke:
function: oci:Tenantmanagercontrolplane/getSubscriptionMapping:getSubscriptionMapping
arguments:
# arguments dictionaryThe following arguments are supported:
- Subscription
Mapping stringId - OCID of the subscriptionMappingId.
- Subscription
Mapping stringId - OCID of the subscriptionMappingId.
- subscription
Mapping StringId - OCID of the subscriptionMappingId.
- subscription
Mapping stringId - OCID of the subscriptionMappingId.
- subscription_
mapping_ strid - OCID of the subscriptionMappingId.
- subscription
Mapping StringId - OCID of the subscriptionMappingId.
getSubscriptionMapping Result
The following output properties are available:
- Compartment
Id string - OCID of the compartment. Always a tenancy OCID.
- Id string
- OCID of the mapping between subscription and compartment identified by the tenancy.
- Is
Explicitly boolAssigned - Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- State string
- Lifecycle state of the subscriptionMapping.
- Subscription
Id string - OCID of the subscription.
- Subscription
Mapping stringId - Time
Created string - Date-time when subscription mapping was created.
- Time
Terminated string - Date-time when subscription mapping was terminated.
- Time
Updated string - Date-time when subscription mapping was updated.
- Compartment
Id string - OCID of the compartment. Always a tenancy OCID.
- Id string
- OCID of the mapping between subscription and compartment identified by the tenancy.
- Is
Explicitly boolAssigned - Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- State string
- Lifecycle state of the subscriptionMapping.
- Subscription
Id string - OCID of the subscription.
- Subscription
Mapping stringId - Time
Created string - Date-time when subscription mapping was created.
- Time
Terminated string - Date-time when subscription mapping was terminated.
- Time
Updated string - Date-time when subscription mapping was updated.
- compartment
Id String - OCID of the compartment. Always a tenancy OCID.
- id String
- OCID of the mapping between subscription and compartment identified by the tenancy.
- is
Explicitly BooleanAssigned - Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state String
- Lifecycle state of the subscriptionMapping.
- subscription
Id String - OCID of the subscription.
- subscription
Mapping StringId - time
Created String - Date-time when subscription mapping was created.
- time
Terminated String - Date-time when subscription mapping was terminated.
- time
Updated String - Date-time when subscription mapping was updated.
- compartment
Id string - OCID of the compartment. Always a tenancy OCID.
- id string
- OCID of the mapping between subscription and compartment identified by the tenancy.
- is
Explicitly booleanAssigned - Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state string
- Lifecycle state of the subscriptionMapping.
- subscription
Id string - OCID of the subscription.
- subscription
Mapping stringId - time
Created string - Date-time when subscription mapping was created.
- time
Terminated string - Date-time when subscription mapping was terminated.
- time
Updated string - Date-time when subscription mapping was updated.
- compartment_
id str - OCID of the compartment. Always a tenancy OCID.
- id str
- OCID of the mapping between subscription and compartment identified by the tenancy.
- is_
explicitly_ boolassigned - Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state str
- Lifecycle state of the subscriptionMapping.
- subscription_
id str - OCID of the subscription.
- subscription_
mapping_ strid - time_
created str - Date-time when subscription mapping was created.
- time_
terminated str - Date-time when subscription mapping was terminated.
- time_
updated str - Date-time when subscription mapping was updated.
- compartment
Id String - OCID of the compartment. Always a tenancy OCID.
- id String
- OCID of the mapping between subscription and compartment identified by the tenancy.
- is
Explicitly BooleanAssigned - Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state String
- Lifecycle state of the subscriptionMapping.
- subscription
Id String - OCID of the subscription.
- subscription
Mapping StringId - time
Created String - Date-time when subscription mapping was created.
- time
Terminated String - Date-time when subscription mapping was terminated.
- time
Updated String - Date-time when subscription mapping was updated.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.5.1
published on Friday, Apr 3, 2026 by Pulumi
published on Friday, Apr 3, 2026 by Pulumi
