Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getSubscriptionMapping
Explore with Pulumi AI
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/v2/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:
- SubscriptionMapping stringId 
- OCID of the subscriptionMappingId.
- SubscriptionMapping stringId 
- OCID of the subscriptionMappingId.
- subscriptionMapping StringId 
- OCID of the subscriptionMappingId.
- subscriptionMapping stringId 
- OCID of the subscriptionMappingId.
- subscription_mapping_ strid 
- OCID of the subscriptionMappingId.
- subscriptionMapping StringId 
- OCID of the subscriptionMappingId.
getSubscriptionMapping Result
The following output properties are available:
- CompartmentId string
- OCID of the compartment. Always a tenancy OCID.
- Id string
- OCID of the mapping between subscription and compartment identified by the tenancy.
- IsExplicitly boolAssigned 
- Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- State string
- Lifecycle state of the subscriptionMapping.
- SubscriptionId string
- OCID of the subscription.
- SubscriptionMapping stringId 
- TimeCreated string
- Date-time when subscription mapping was created.
- TimeTerminated string
- Date-time when subscription mapping was terminated.
- TimeUpdated string
- Date-time when subscription mapping was updated.
- CompartmentId string
- OCID of the compartment. Always a tenancy OCID.
- Id string
- OCID of the mapping between subscription and compartment identified by the tenancy.
- IsExplicitly boolAssigned 
- Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- State string
- Lifecycle state of the subscriptionMapping.
- SubscriptionId string
- OCID of the subscription.
- SubscriptionMapping stringId 
- TimeCreated string
- Date-time when subscription mapping was created.
- TimeTerminated string
- Date-time when subscription mapping was terminated.
- TimeUpdated string
- Date-time when subscription mapping was updated.
- compartmentId String
- OCID of the compartment. Always a tenancy OCID.
- id String
- OCID of the mapping between subscription and compartment identified by the tenancy.
- isExplicitly BooleanAssigned 
- Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state String
- Lifecycle state of the subscriptionMapping.
- subscriptionId String
- OCID of the subscription.
- subscriptionMapping StringId 
- timeCreated String
- Date-time when subscription mapping was created.
- timeTerminated String
- Date-time when subscription mapping was terminated.
- timeUpdated String
- Date-time when subscription mapping was updated.
- compartmentId string
- OCID of the compartment. Always a tenancy OCID.
- id string
- OCID of the mapping between subscription and compartment identified by the tenancy.
- isExplicitly booleanAssigned 
- Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state string
- Lifecycle state of the subscriptionMapping.
- subscriptionId string
- OCID of the subscription.
- subscriptionMapping stringId 
- timeCreated string
- Date-time when subscription mapping was created.
- timeTerminated string
- Date-time when subscription mapping was terminated.
- timeUpdated 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.
- compartmentId String
- OCID of the compartment. Always a tenancy OCID.
- id String
- OCID of the mapping between subscription and compartment identified by the tenancy.
- isExplicitly BooleanAssigned 
- Denotes if the subscription is explicity assigned to the root compartment or tenancy.
- state String
- Lifecycle state of the subscriptionMapping.
- subscriptionId String
- OCID of the subscription.
- subscriptionMapping StringId 
- timeCreated String
- Date-time when subscription mapping was created.
- timeTerminated String
- Date-time when subscription mapping was terminated.
- timeUpdated 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.