Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.OsubSubscription.getCommitment
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCommitment = oci.OsubSubscription.getCommitment({
commitmentId: testCommitmentOciOsubSubscriptionCommitment.id,
xOneGatewaySubscriptionId: commitmentXOneGatewaySubscriptionId,
xOneOriginRegion: commitmentXOneOriginRegion,
});
import pulumi
import pulumi_oci as oci
test_commitment = oci.OsubSubscription.get_commitment(commitment_id=test_commitment_oci_osub_subscription_commitment["id"],
x_one_gateway_subscription_id=commitment_x_one_gateway_subscription_id,
x_one_origin_region=commitment_x_one_origin_region)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testCommitmentOciOsubSubscriptionCommitment.Id,
XOneGatewaySubscriptionId: pulumi.StringRef(commitmentXOneGatewaySubscriptionId),
XOneOriginRegion: pulumi.StringRef(commitmentXOneOriginRegion),
}, 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 testCommitment = Oci.OsubSubscription.GetCommitment.Invoke(new()
{
CommitmentId = testCommitmentOciOsubSubscriptionCommitment.Id,
XOneGatewaySubscriptionId = commitmentXOneGatewaySubscriptionId,
XOneOriginRegion = commitmentXOneOriginRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsubSubscription.OsubSubscriptionFunctions;
import com.pulumi.oci.OsubSubscription.inputs.GetCommitmentArgs;
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 testCommitment = OsubSubscriptionFunctions.getCommitment(GetCommitmentArgs.builder()
.commitmentId(testCommitmentOciOsubSubscriptionCommitment.id())
.xOneGatewaySubscriptionId(commitmentXOneGatewaySubscriptionId)
.xOneOriginRegion(commitmentXOneOriginRegion)
.build());
}
}
variables:
testCommitment:
fn::invoke:
Function: oci:OsubSubscription:getCommitment
Arguments:
commitmentId: ${testCommitmentOciOsubSubscriptionCommitment.id}
xOneGatewaySubscriptionId: ${commitmentXOneGatewaySubscriptionId}
xOneOriginRegion: ${commitmentXOneOriginRegion}
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:
- Commitment
Id string - The Commitment Id
- XOne
Gateway stringSubscription Id - 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.
- XOne
Origin stringRegion - 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 string - The Commitment Id
- XOne
Gateway stringSubscription Id - 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.
- XOne
Origin stringRegion - 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 String - The Commitment Id
- x
One StringGateway Subscription Id - 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 StringOrigin Region - 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 string - The Commitment Id
- x
One stringGateway Subscription Id - 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 stringOrigin Region - 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_ strgateway_ subscription_ id - 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_ strorigin_ region - 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 String - The Commitment Id
- x
One StringGateway Subscription Id - 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 StringOrigin Region - 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:
- Available
Amount string - Commitment available amount
- Commitment
Id string - Funded
Allocation stringValue - Funded Allocation line value example: 12000.00
- Id string
- The provider-assigned unique ID for this managed resource.
- Quantity string
- Commitment quantity
- Time
End string - Commitment end date
- Time
Start string - Commitment start date
- Used
Amount string - Commitment used amount
- XOne
Gateway stringSubscription Id - XOne
Origin stringRegion
- Available
Amount string - Commitment available amount
- Commitment
Id string - Funded
Allocation stringValue - Funded Allocation line value example: 12000.00
- Id string
- The provider-assigned unique ID for this managed resource.
- Quantity string
- Commitment quantity
- Time
End string - Commitment end date
- Time
Start string - Commitment start date
- Used
Amount string - Commitment used amount
- XOne
Gateway stringSubscription Id - XOne
Origin stringRegion
- available
Amount String - Commitment available amount
- commitment
Id String - funded
Allocation StringValue - Funded Allocation line value example: 12000.00
- id String
- The provider-assigned unique ID for this managed resource.
- quantity String
- Commitment quantity
- time
End String - Commitment end date
- time
Start String - Commitment start date
- used
Amount String - Commitment used amount
- x
One StringGateway Subscription Id - x
One StringOrigin Region
- available
Amount string - Commitment available amount
- commitment
Id string - funded
Allocation stringValue - Funded Allocation line value example: 12000.00
- id string
- The provider-assigned unique ID for this managed resource.
- quantity string
- Commitment quantity
- time
End string - Commitment end date
- time
Start string - Commitment start date
- used
Amount string - Commitment used amount
- x
One stringGateway Subscription Id - x
One stringOrigin Region
- available_
amount str - Commitment available amount
- commitment_
id str - funded_
allocation_ strvalue - 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_ strgateway_ subscription_ id - x_
one_ strorigin_ region
- available
Amount String - Commitment available amount
- commitment
Id String - funded
Allocation StringValue - Funded Allocation line value example: 12000.00
- id String
- The provider-assigned unique ID for this managed resource.
- quantity String
- Commitment quantity
- time
End String - Commitment end date
- time
Start String - Commitment start date
- used
Amount String - Commitment used amount
- x
One StringGateway Subscription Id - x
One StringOrigin Region
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.