Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.OsManagementHub.getEntitlements
Explore with Pulumi AI
This data source provides the list of Entitlements in Oracle Cloud Infrastructure Os Management Hub service.
Lists entitlements in the specified tenancy OCID. Filter the list against a variety of criteria including but not limited to its Customer Support Identifier (CSI), and vendor name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testEntitlements = oci.OsManagementHub.getEntitlements({
compartmentId: compartmentId,
csi: entitlementCsi,
vendorName: entitlementVendorName,
});
import pulumi
import pulumi_oci as oci
test_entitlements = oci.OsManagementHub.get_entitlements(compartment_id=compartment_id,
csi=entitlement_csi,
vendor_name=entitlement_vendor_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/OsManagementHub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := OsManagementHub.GetEntitlements(ctx, &osmanagementhub.GetEntitlementsArgs{
CompartmentId: compartmentId,
Csi: pulumi.StringRef(entitlementCsi),
VendorName: pulumi.StringRef(entitlementVendorName),
}, 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 testEntitlements = Oci.OsManagementHub.GetEntitlements.Invoke(new()
{
CompartmentId = compartmentId,
Csi = entitlementCsi,
VendorName = entitlementVendorName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetEntitlementsArgs;
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 testEntitlements = OsManagementHubFunctions.getEntitlements(GetEntitlementsArgs.builder()
.compartmentId(compartmentId)
.csi(entitlementCsi)
.vendorName(entitlementVendorName)
.build());
}
}
variables:
testEntitlements:
fn::invoke:
Function: oci:OsManagementHub:getEntitlements
Arguments:
compartmentId: ${compartmentId}
csi: ${entitlementCsi}
vendorName: ${entitlementVendorName}
Using getEntitlements
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 getEntitlements(args: GetEntitlementsArgs, opts?: InvokeOptions): Promise<GetEntitlementsResult>
function getEntitlementsOutput(args: GetEntitlementsOutputArgs, opts?: InvokeOptions): Output<GetEntitlementsResult>
def get_entitlements(compartment_id: Optional[str] = None,
csi: Optional[str] = None,
filters: Optional[Sequence[_osmanagementhub.GetEntitlementsFilter]] = None,
vendor_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEntitlementsResult
def get_entitlements_output(compartment_id: Optional[pulumi.Input[str]] = None,
csi: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetEntitlementsFilterArgs]]]] = None,
vendor_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEntitlementsResult]
func GetEntitlements(ctx *Context, args *GetEntitlementsArgs, opts ...InvokeOption) (*GetEntitlementsResult, error)
func GetEntitlementsOutput(ctx *Context, args *GetEntitlementsOutputArgs, opts ...InvokeOption) GetEntitlementsResultOutput
> Note: This function is named GetEntitlements
in the Go SDK.
public static class GetEntitlements
{
public static Task<GetEntitlementsResult> InvokeAsync(GetEntitlementsArgs args, InvokeOptions? opts = null)
public static Output<GetEntitlementsResult> Invoke(GetEntitlementsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEntitlementsResult> getEntitlements(GetEntitlementsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagementHub/getEntitlements:getEntitlements
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Csi string
- A filter to return entitlements that match the given CSI.
- Filters
List<Get
Entitlements Filter> - Vendor
Name string - A filter to return only resources that match the given vendor name.
- Compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Csi string
- A filter to return entitlements that match the given CSI.
- Filters
[]Get
Entitlements Filter - Vendor
Name string - A filter to return only resources that match the given vendor name.
- compartment
Id String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi String
- A filter to return entitlements that match the given CSI.
- filters
List<Get
Entitlements Filter> - vendor
Name String - A filter to return only resources that match the given vendor name.
- compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi string
- A filter to return entitlements that match the given CSI.
- filters
Get
Entitlements Filter[] - vendor
Name string - A filter to return only resources that match the given vendor name.
- compartment_
id str - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi str
- A filter to return entitlements that match the given CSI.
- filters
Sequence[osmanagementhub.
Get Entitlements Filter] - vendor_
name str - A filter to return only resources that match the given vendor name.
- compartment
Id String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi String
- A filter to return entitlements that match the given CSI.
- filters List<Property Map>
- vendor
Name String - A filter to return only resources that match the given vendor name.
getEntitlements Result
The following output properties are available:
- Compartment
Id string - The OCID of the tenancy containing the entitlement.
- Entitlement
Collections List<GetEntitlements Entitlement Collection> - The list of entitlement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Csi string
- The Customer Support Identifier (CSI) which unlocks the software sources. The CSI is is a unique key given to a customer and it uniquely identifies the entitlement.
- Filters
List<Get
Entitlements Filter> - Vendor
Name string - The vendor for the entitlement.
- Compartment
Id string - The OCID of the tenancy containing the entitlement.
- Entitlement
Collections []GetEntitlements Entitlement Collection - The list of entitlement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Csi string
- The Customer Support Identifier (CSI) which unlocks the software sources. The CSI is is a unique key given to a customer and it uniquely identifies the entitlement.
- Filters
[]Get
Entitlements Filter - Vendor
Name string - The vendor for the entitlement.
- compartment
Id String - The OCID of the tenancy containing the entitlement.
- entitlement
Collections List<GetEntitlements Entitlement Collection> - The list of entitlement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- csi String
- The Customer Support Identifier (CSI) which unlocks the software sources. The CSI is is a unique key given to a customer and it uniquely identifies the entitlement.
- filters
List<Get
Entitlements Filter> - vendor
Name String - The vendor for the entitlement.
- compartment
Id string - The OCID of the tenancy containing the entitlement.
- entitlement
Collections GetEntitlements Entitlement Collection[] - The list of entitlement_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- csi string
- The Customer Support Identifier (CSI) which unlocks the software sources. The CSI is is a unique key given to a customer and it uniquely identifies the entitlement.
- filters
Get
Entitlements Filter[] - vendor
Name string - The vendor for the entitlement.
- compartment_
id str - The OCID of the tenancy containing the entitlement.
- entitlement_
collections Sequence[osmanagementhub.Get Entitlements Entitlement Collection] - The list of entitlement_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- csi str
- The Customer Support Identifier (CSI) which unlocks the software sources. The CSI is is a unique key given to a customer and it uniquely identifies the entitlement.
- filters
Sequence[osmanagementhub.
Get Entitlements Filter] - vendor_
name str - The vendor for the entitlement.
- compartment
Id String - The OCID of the tenancy containing the entitlement.
- entitlement
Collections List<Property Map> - The list of entitlement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- csi String
- The Customer Support Identifier (CSI) which unlocks the software sources. The CSI is is a unique key given to a customer and it uniquely identifies the entitlement.
- filters List<Property Map>
- vendor
Name String - The vendor for the entitlement.
Supporting Types
GetEntitlementsEntitlementCollection
- Compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Csi string
- A filter to return entitlements that match the given CSI.
- Items
List<Get
Entitlements Entitlement Collection Item> - List of entitlements.
- Compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Csi string
- A filter to return entitlements that match the given CSI.
- Items
[]Get
Entitlements Entitlement Collection Item - List of entitlements.
- compartment
Id String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi String
- A filter to return entitlements that match the given CSI.
- items
List<Get
Entitlements Entitlement Collection Item> - List of entitlements.
- compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi string
- A filter to return entitlements that match the given CSI.
- items
Get
Entitlements Entitlement Collection Item[] - List of entitlements.
- compartment_
id str - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi str
- A filter to return entitlements that match the given CSI.
- items
Sequence[osmanagementhub.
Get Entitlements Entitlement Collection Item] - List of entitlements.
- compartment
Id String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi String
- A filter to return entitlements that match the given CSI.
- items List<Property Map>
- List of entitlements.
GetEntitlementsEntitlementCollectionItem
- Compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Csi string
- A filter to return entitlements that match the given CSI.
- Vendor
Name string - A filter to return only resources that match the given vendor name.
- Compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Csi string
- A filter to return entitlements that match the given CSI.
- Vendor
Name string - A filter to return only resources that match the given vendor name.
- compartment
Id String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi String
- A filter to return entitlements that match the given CSI.
- vendor
Name String - A filter to return only resources that match the given vendor name.
- compartment
Id string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi string
- A filter to return entitlements that match the given CSI.
- vendor
Name string - A filter to return only resources that match the given vendor name.
- compartment_
id str - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi str
- A filter to return entitlements that match the given CSI.
- vendor_
name str - A filter to return only resources that match the given vendor name.
- compartment
Id String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- csi String
- A filter to return entitlements that match the given CSI.
- vendor
Name String - A filter to return only resources that match the given vendor name.
GetEntitlementsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.