Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.OneSubsription.getCommitment
Explore with Pulumi AI
This data source provides details about a specific Commitment resource in Oracle Cloud Infrastructure Onesubscription 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.OneSubsription.getCommitment({
commitmentId: testCommitmentOciOnesubscriptionCommitment.id,
});
import pulumi
import pulumi_oci as oci
test_commitment = oci.OneSubsription.get_commitment(commitment_id=test_commitment_oci_onesubscription_commitment["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OneSubsription"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := OneSubsription.GetCommitment(ctx, &onesubsription.GetCommitmentArgs{
CommitmentId: testCommitmentOciOnesubscriptionCommitment.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 testCommitment = Oci.OneSubsription.GetCommitment.Invoke(new()
{
CommitmentId = testCommitmentOciOnesubscriptionCommitment.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OneSubsription.OneSubsriptionFunctions;
import com.pulumi.oci.OneSubsription.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 = OneSubsriptionFunctions.getCommitment(GetCommitmentArgs.builder()
.commitmentId(testCommitmentOciOnesubscriptionCommitment.id())
.build());
}
}
variables:
testCommitment:
fn::invoke:
Function: oci:OneSubsription:getCommitment
Arguments:
commitmentId: ${testCommitmentOciOnesubscriptionCommitment.id}
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,
opts: Optional[InvokeOptions] = None) -> GetCommitmentResult
def get_commitment_output(commitment_id: 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:OneSubsription/getCommitment:getCommitment
arguments:
# arguments dictionary
The following arguments are supported:
- Commitment
Id string - The Commitment Id
- Commitment
Id string - The Commitment Id
- commitment
Id String - The Commitment Id
- commitment
Id string - The Commitment Id
- commitment_
id str - The Commitment Id
- commitment
Id String - The Commitment Id
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
- Subscribed
Service stringId - SPM internal Subscribed Service ID
- Time
End string - Commitment end date
- Time
Start string - Commitment start date
- Used
Amount string - Commitment used amount
- 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
- Subscribed
Service stringId - SPM internal Subscribed Service ID
- Time
End string - Commitment end date
- Time
Start string - Commitment start date
- Used
Amount string - Commitment used amount
- 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
- subscribed
Service StringId - SPM internal Subscribed Service ID
- time
End String - Commitment end date
- time
Start String - Commitment start date
- used
Amount String - Commitment used amount
- 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
- subscribed
Service stringId - SPM internal Subscribed Service ID
- time
End string - Commitment end date
- time
Start string - Commitment start date
- used
Amount string - Commitment used amount
- 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
- subscribed_
service_ strid - SPM internal Subscribed Service ID
- time_
end str - Commitment end date
- time_
start str - Commitment start date
- used_
amount str - Commitment used amount
- 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
- subscribed
Service StringId - SPM internal Subscribed Service ID
- time
End String - Commitment end date
- time
Start String - Commitment start date
- used
Amount String - Commitment used amount
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.