Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getCommitment

This data source provides details about a specific Commitment resource in Oracle Cloud Infrastructure Osub Subscription service.

This API returns the commitment details corresponding to the id provided

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testCommitment = Output.Create(Oci.OsubSubscription.GetCommitment.InvokeAsync(new Oci.OsubSubscription.GetCommitmentArgs
        {
            CommitmentId = oci_osub_subscription_commitment.Test_commitment.Id,
            XOneGatewaySubscriptionId = @var.Commitment_x_one_gateway_subscription_id,
            XOneOriginRegion = @var.Commitment_x_one_origin_region,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsubSubscription"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := OsubSubscription.GetCommitment(ctx, &osubsubscription.GetCommitmentArgs{
			CommitmentId:              oci_osub_subscription_commitment.Test_commitment.Id,
			XOneGatewaySubscriptionId: pulumi.StringRef(_var.Commitment_x_one_gateway_subscription_id),
			XOneOriginRegion:          pulumi.StringRef(_var.Commitment_x_one_origin_region),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_commitment = oci.OsubSubscription.get_commitment(commitment_id=oci_osub_subscription_commitment["test_commitment"]["id"],
    x_one_gateway_subscription_id=var["commitment_x_one_gateway_subscription_id"],
    x_one_origin_region=var["commitment_x_one_origin_region"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCommitment = oci.OsubSubscription.getCommitment({
    commitmentId: oci_osub_subscription_commitment.test_commitment.id,
    xOneGatewaySubscriptionId: _var.commitment_x_one_gateway_subscription_id,
    xOneOriginRegion: _var.commitment_x_one_origin_region,
});

Coming soon!

Using getCommitment

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 getCommitment(args: GetCommitmentArgs, opts?: InvokeOptions): Promise<GetCommitmentResult>
function getCommitmentOutput(args: GetCommitmentOutputArgs, opts?: InvokeOptions): Output<GetCommitmentResult>
def get_commitment(commitment_id: Optional[str] = None,
                   x_one_gateway_subscription_id: Optional[str] = None,
                   x_one_origin_region: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetCommitmentResult
def get_commitment_output(commitment_id: Optional[pulumi.Input[str]] = None,
                   x_one_gateway_subscription_id: Optional[pulumi.Input[str]] = None,
                   x_one_origin_region: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetCommitmentResult]
func GetCommitment(ctx *Context, args *GetCommitmentArgs, opts ...InvokeOption) (*GetCommitmentResult, error)
func GetCommitmentOutput(ctx *Context, args *GetCommitmentOutputArgs, opts ...InvokeOption) GetCommitmentResultOutput

> Note: This function is named GetCommitment in the Go SDK.

public static class GetCommitment 
{
    public static Task<GetCommitmentResult> InvokeAsync(GetCommitmentArgs args, InvokeOptions? opts = null)
    public static Output<GetCommitmentResult> Invoke(GetCommitmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCommitmentResult> getCommitment(GetCommitmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:OsubSubscription/getCommitment:getCommitment
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CommitmentId string

The Commitment Id

XOneGatewaySubscriptionId string

This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is to help on Gateway to API calls identification.

XOneOriginRegion string

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

CommitmentId string

The Commitment Id

XOneGatewaySubscriptionId string

This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is to help on Gateway to API calls identification.

XOneOriginRegion string

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

commitmentId String

The Commitment Id

xOneGatewaySubscriptionId String

This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is to help on Gateway to API calls identification.

xOneOriginRegion String

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

commitmentId string

The Commitment Id

xOneGatewaySubscriptionId string

This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is to help on Gateway to API calls identification.

xOneOriginRegion string

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

commitment_id str

The Commitment Id

x_one_gateway_subscription_id str

This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is to help on Gateway to API calls identification.

x_one_origin_region str

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

commitmentId String

The Commitment Id

xOneGatewaySubscriptionId String

This header is meant to be used only for internal purposes and will be ignored on any public request. The purpose of this header is to help on Gateway to API calls identification.

xOneOriginRegion String

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

getCommitment Result

The following output properties are available:

AvailableAmount string

Commitment available amount

CommitmentId string
FundedAllocationValue string

Funded Allocation line value example: 12000.00

Id string

The provider-assigned unique ID for this managed resource.

Quantity string

Commitment quantity

TimeEnd string

Commitment end date

TimeStart string

Commitment start date

UsedAmount string

Commitment used amount

XOneGatewaySubscriptionId string
XOneOriginRegion string
AvailableAmount string

Commitment available amount

CommitmentId string
FundedAllocationValue string

Funded Allocation line value example: 12000.00

Id string

The provider-assigned unique ID for this managed resource.

Quantity string

Commitment quantity

TimeEnd string

Commitment end date

TimeStart string

Commitment start date

UsedAmount string

Commitment used amount

XOneGatewaySubscriptionId string
XOneOriginRegion string
availableAmount String

Commitment available amount

commitmentId String
fundedAllocationValue String

Funded Allocation line value example: 12000.00

id String

The provider-assigned unique ID for this managed resource.

quantity String

Commitment quantity

timeEnd String

Commitment end date

timeStart String

Commitment start date

usedAmount String

Commitment used amount

xOneGatewaySubscriptionId String
xOneOriginRegion String
availableAmount string

Commitment available amount

commitmentId string
fundedAllocationValue string

Funded Allocation line value example: 12000.00

id string

The provider-assigned unique ID for this managed resource.

quantity string

Commitment quantity

timeEnd string

Commitment end date

timeStart string

Commitment start date

usedAmount string

Commitment used amount

xOneGatewaySubscriptionId string
xOneOriginRegion string
available_amount str

Commitment available amount

commitment_id str
funded_allocation_value str

Funded Allocation line value example: 12000.00

id str

The provider-assigned unique ID for this managed resource.

quantity str

Commitment quantity

time_end str

Commitment end date

time_start str

Commitment start date

used_amount str

Commitment used amount

x_one_gateway_subscription_id str
x_one_origin_region str
availableAmount String

Commitment available amount

commitmentId String
fundedAllocationValue String

Funded Allocation line value example: 12000.00

id String

The provider-assigned unique ID for this managed resource.

quantity String

Commitment quantity

timeEnd String

Commitment end date

timeStart String

Commitment start date

usedAmount String

Commitment used amount

xOneGatewaySubscriptionId String
xOneOriginRegion String

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.