1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getSubscriptionMapping
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getSubscriptionMapping

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testSubscriptionMapping:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getSubscriptionMapping
      arguments:
        subscriptionMappingId: ${testSubscriptionMappingOciTenantmanagercontrolplaneSubscriptionMapping.id}
Copy

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>
Copy
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]
Copy
func GetSubscriptionMapping(ctx *Context, args *GetSubscriptionMappingArgs, opts ...InvokeOption) (*GetSubscriptionMappingResult, error)
func GetSubscriptionMappingOutput(ctx *Context, args *GetSubscriptionMappingOutputArgs, opts ...InvokeOption) GetSubscriptionMappingResultOutput
Copy

> Note: This function is named GetSubscriptionMapping 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)
}
Copy
public static CompletableFuture<GetSubscriptionMappingResult> getSubscriptionMapping(GetSubscriptionMappingArgs args, InvokeOptions options)
public static Output<GetSubscriptionMappingResult> getSubscriptionMapping(GetSubscriptionMappingArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getSubscriptionMapping:getSubscriptionMapping
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SubscriptionMappingId This property is required. string
OCID of the subscriptionMappingId.
SubscriptionMappingId This property is required. string
OCID of the subscriptionMappingId.
subscriptionMappingId This property is required. String
OCID of the subscriptionMappingId.
subscriptionMappingId This property is required. string
OCID of the subscriptionMappingId.
subscription_mapping_id This property is required. str
OCID of the subscriptionMappingId.
subscriptionMappingId This property is required. String
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.
IsExplicitlyAssigned bool
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.
SubscriptionMappingId string
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.
IsExplicitlyAssigned bool
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.
SubscriptionMappingId string
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.
isExplicitlyAssigned Boolean
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.
subscriptionMappingId String
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.
isExplicitlyAssigned boolean
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.
subscriptionMappingId string
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_assigned bool
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_id str
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.
isExplicitlyAssigned Boolean
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.
subscriptionMappingId String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi