ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getKmsKmipObjects
Explore with Pulumi AI
Example Usage
Sample example to list KMIP objects in a given adapter
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const kmsInstance = new ibm.ResourceInstance("kmsInstance", {
service: "kms",
plan: "tiered-pricing",
location: "us-south",
});
const myadapter = ibm.getKmsKmipAdapter({
instanceId: ibm_resource_instance.kp_instance.guid,
name: "myadapter",
});
const objectsList = myadapter.then(myadapter => ibm.getKmsKmipObjects({
instanceId: ibm_resource_instance.kp_instance.guid,
adapterId: myadapter.id,
objectStateFilters: [
1,
2,
3,
4,
],
}));
import pulumi
import pulumi_ibm as ibm
kms_instance = ibm.ResourceInstance("kmsInstance",
service="kms",
plan="tiered-pricing",
location="us-south")
myadapter = ibm.get_kms_kmip_adapter(instance_id=ibm_resource_instance["kp_instance"]["guid"],
name="myadapter")
objects_list = ibm.get_kms_kmip_objects(instance_id=ibm_resource_instance["kp_instance"]["guid"],
adapter_id=myadapter.id,
object_state_filters=[
1,
2,
3,
4,
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewResourceInstance(ctx, "kmsInstance", &ibm.ResourceInstanceArgs{
Service: pulumi.String("kms"),
Plan: pulumi.String("tiered-pricing"),
Location: pulumi.String("us-south"),
})
if err != nil {
return err
}
myadapter, err := ibm.LookupKmsKmipAdapter(ctx, &ibm.LookupKmsKmipAdapterArgs{
InstanceId: ibm_resource_instance.Kp_instance.Guid,
Name: pulumi.StringRef("myadapter"),
}, nil)
if err != nil {
return err
}
_, err = ibm.GetKmsKmipObjects(ctx, &ibm.GetKmsKmipObjectsArgs{
InstanceId: ibm_resource_instance.Kp_instance.Guid,
AdapterId: pulumi.StringRef(myadapter.Id),
ObjectStateFilters: []float64{
1,
2,
3,
4,
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var kmsInstance = new Ibm.ResourceInstance("kmsInstance", new()
{
Service = "kms",
Plan = "tiered-pricing",
Location = "us-south",
});
var myadapter = Ibm.GetKmsKmipAdapter.Invoke(new()
{
InstanceId = ibm_resource_instance.Kp_instance.Guid,
Name = "myadapter",
});
var objectsList = Ibm.GetKmsKmipObjects.Invoke(new()
{
InstanceId = ibm_resource_instance.Kp_instance.Guid,
AdapterId = myadapter.Apply(getKmsKmipAdapterResult => getKmsKmipAdapterResult.Id),
ObjectStateFilters = new[]
{
1,
2,
3,
4,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ResourceInstance;
import com.pulumi.ibm.ResourceInstanceArgs;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetKmsKmipAdapterArgs;
import com.pulumi.ibm.inputs.GetKmsKmipObjectsArgs;
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) {
var kmsInstance = new ResourceInstance("kmsInstance", ResourceInstanceArgs.builder()
.service("kms")
.plan("tiered-pricing")
.location("us-south")
.build());
final var myadapter = IbmFunctions.getKmsKmipAdapter(GetKmsKmipAdapterArgs.builder()
.instanceId(ibm_resource_instance.kp_instance().guid())
.name("myadapter")
.build());
final var objectsList = IbmFunctions.getKmsKmipObjects(GetKmsKmipObjectsArgs.builder()
.instanceId(ibm_resource_instance.kp_instance().guid())
.adapterId(myadapter.applyValue(getKmsKmipAdapterResult -> getKmsKmipAdapterResult.id()))
.objectStateFilters(
1,
2,
3,
4)
.build());
}
}
resources:
kmsInstance:
type: ibm:ResourceInstance
properties:
service: kms
plan: tiered-pricing
location: us-south
variables:
myadapter:
fn::invoke:
function: ibm:getKmsKmipAdapter
arguments:
instanceId: ${ibm_resource_instance.kp_instance.guid}
name: myadapter
objectsList:
fn::invoke:
function: ibm:getKmsKmipObjects
arguments:
instanceId: ${ibm_resource_instance.kp_instance.guid}
adapterId: ${myadapter.id}
objectStateFilters:
- 1
- 2
- 3
- 4
Using getKmsKmipObjects
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 getKmsKmipObjects(args: GetKmsKmipObjectsArgs, opts?: InvokeOptions): Promise<GetKmsKmipObjectsResult>
function getKmsKmipObjectsOutput(args: GetKmsKmipObjectsOutputArgs, opts?: InvokeOptions): Output<GetKmsKmipObjectsResult>
def get_kms_kmip_objects(adapter_id: Optional[str] = None,
adapter_name: Optional[str] = None,
endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
limit: Optional[float] = None,
object_state_filters: Optional[Sequence[float]] = None,
offset: Optional[float] = None,
show_total_count: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetKmsKmipObjectsResult
def get_kms_kmip_objects_output(adapter_id: Optional[pulumi.Input[str]] = None,
adapter_name: Optional[pulumi.Input[str]] = None,
endpoint_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = None,
object_state_filters: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
offset: Optional[pulumi.Input[float]] = None,
show_total_count: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKmsKmipObjectsResult]
func GetKmsKmipObjects(ctx *Context, args *GetKmsKmipObjectsArgs, opts ...InvokeOption) (*GetKmsKmipObjectsResult, error)
func GetKmsKmipObjectsOutput(ctx *Context, args *GetKmsKmipObjectsOutputArgs, opts ...InvokeOption) GetKmsKmipObjectsResultOutput
> Note: This function is named GetKmsKmipObjects
in the Go SDK.
public static class GetKmsKmipObjects
{
public static Task<GetKmsKmipObjectsResult> InvokeAsync(GetKmsKmipObjectsArgs args, InvokeOptions? opts = null)
public static Output<GetKmsKmipObjectsResult> Invoke(GetKmsKmipObjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKmsKmipObjectsResult> getKmsKmipObjects(GetKmsKmipObjectsArgs args, InvokeOptions options)
public static Output<GetKmsKmipObjectsResult> getKmsKmipObjects(GetKmsKmipObjectsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getKmsKmipObjects:getKmsKmipObjects
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The key protect instance GUID.
- Adapter
Id string - Adapter
Name string - Endpoint
Type string - The type of the public endpoint, or private endpoint to be used for creating keys.
- Id string
- Limit double
- Limit of how many objects to be fetched.
- Object
State List<double>Filters - A list of integers representing Object States to filter for
- Offset double
- Offset of objects to be fetched.
- Show
Total boolCount - Flag to return the count of how many objects there are in total after the filter.
- Instance
Id string - The key protect instance GUID.
- Adapter
Id string - Adapter
Name string - Endpoint
Type string - The type of the public endpoint, or private endpoint to be used for creating keys.
- Id string
- Limit float64
- Limit of how many objects to be fetched.
- Object
State []float64Filters - A list of integers representing Object States to filter for
- Offset float64
- Offset of objects to be fetched.
- Show
Total boolCount - Flag to return the count of how many objects there are in total after the filter.
- instance
Id String - The key protect instance GUID.
- adapter
Id String - adapter
Name String - endpoint
Type String - The type of the public endpoint, or private endpoint to be used for creating keys.
- id String
- limit Double
- Limit of how many objects to be fetched.
- object
State List<Double>Filters - A list of integers representing Object States to filter for
- offset Double
- Offset of objects to be fetched.
- show
Total BooleanCount - Flag to return the count of how many objects there are in total after the filter.
- instance
Id string - The key protect instance GUID.
- adapter
Id string - adapter
Name string - endpoint
Type string - The type of the public endpoint, or private endpoint to be used for creating keys.
- id string
- limit number
- Limit of how many objects to be fetched.
- object
State number[]Filters - A list of integers representing Object States to filter for
- offset number
- Offset of objects to be fetched.
- show
Total booleanCount - Flag to return the count of how many objects there are in total after the filter.
- instance_
id str - The key protect instance GUID.
- adapter_
id str - adapter_
name str - endpoint_
type str - The type of the public endpoint, or private endpoint to be used for creating keys.
- id str
- limit float
- Limit of how many objects to be fetched.
- object_
state_ Sequence[float]filters - A list of integers representing Object States to filter for
- offset float
- Offset of objects to be fetched.
- show_
total_ boolcount - Flag to return the count of how many objects there are in total after the filter.
- instance
Id String - The key protect instance GUID.
- adapter
Id String - adapter
Name String - endpoint
Type String - The type of the public endpoint, or private endpoint to be used for creating keys.
- id String
- limit Number
- Limit of how many objects to be fetched.
- object
State List<Number>Filters - A list of integers representing Object States to filter for
- offset Number
- Offset of objects to be fetched.
- show
Total BooleanCount - Flag to return the count of how many objects there are in total after the filter.
getKmsKmipObjects Result
The following output properties are available:
- Adapter
Id string - Adapter
Name string - Endpoint
Type string - Id string
- Instance
Id string - Objects
List<Get
Kms Kmip Objects Object> - (List of Objects) The list of KMIP objects in an adapter
- Total
Count double - (Integer) If show_total_count is true, this will contain the total number of objects after the State Filter
- Limit double
- Object
State List<double>Filters - Offset double
- Show
Total boolCount
- Adapter
Id string - Adapter
Name string - Endpoint
Type string - Id string
- Instance
Id string - Objects
[]Get
Kms Kmip Objects Object - (List of Objects) The list of KMIP objects in an adapter
- Total
Count float64 - (Integer) If show_total_count is true, this will contain the total number of objects after the State Filter
- Limit float64
- Object
State []float64Filters - Offset float64
- Show
Total boolCount
- adapter
Id String - adapter
Name String - endpoint
Type String - id String
- instance
Id String - objects
List<Get
Kms Kmip Objects Object> - (List of Objects) The list of KMIP objects in an adapter
- total
Count Double - (Integer) If show_total_count is true, this will contain the total number of objects after the State Filter
- limit Double
- object
State List<Double>Filters - offset Double
- show
Total BooleanCount
- adapter
Id string - adapter
Name string - endpoint
Type string - id string
- instance
Id string - objects
Get
Kms Kmip Objects Object[] - (List of Objects) The list of KMIP objects in an adapter
- total
Count number - (Integer) If show_total_count is true, this will contain the total number of objects after the State Filter
- limit number
- object
State number[]Filters - offset number
- show
Total booleanCount
- adapter_
id str - adapter_
name str - endpoint_
type str - id str
- instance_
id str - objects
Sequence[Get
Kms Kmip Objects Object] - (List of Objects) The list of KMIP objects in an adapter
- total_
count float - (Integer) If show_total_count is true, this will contain the total number of objects after the State Filter
- limit float
- object_
state_ Sequence[float]filters - offset float
- show_
total_ boolcount
- adapter
Id String - adapter
Name String - endpoint
Type String - id String
- instance
Id String - objects List<Property Map>
- (List of Objects) The list of KMIP objects in an adapter
- total
Count Number - (Integer) If show_total_count is true, this will contain the total number of objects after the State Filter
- limit Number
- object
State List<Number>Filters - offset Number
- show
Total BooleanCount
Supporting Types
GetKmsKmipObjectsObject
- Created
At string - (String) The date the resource was created, in RFC 3339 format
- Created
By string - (String) The IBM-ID of the identity that created the resource
- Created
By stringCert Id - (String) The ID of the certificate that created the object
- Destroyed
At string - (String) The date the resource was destroyed, in RFC 3339 format
- Destroyed
By string - (String) The IBM-ID of the identity that destroyed the resource
- Destroyed
By stringCert Id - (String) The ID of the certificate that destroyed the object
- Object
Id string - (String) The id of the KMIP Object
- Object
State double - (Integer) The state of the KMIP object as an enum
- Object
Type double - (Integer) The type of the KMIP object as an enum
- Updated
At string - (String) The date the resource was updated, in RFC 3339 format
- Updated
By string - (String) The IBM-ID of the identity that updated the resource
- Updated
By stringCert Id - (String) The ID of the certificate that updated the object
- Created
At string - (String) The date the resource was created, in RFC 3339 format
- Created
By string - (String) The IBM-ID of the identity that created the resource
- Created
By stringCert Id - (String) The ID of the certificate that created the object
- Destroyed
At string - (String) The date the resource was destroyed, in RFC 3339 format
- Destroyed
By string - (String) The IBM-ID of the identity that destroyed the resource
- Destroyed
By stringCert Id - (String) The ID of the certificate that destroyed the object
- Object
Id string - (String) The id of the KMIP Object
- Object
State float64 - (Integer) The state of the KMIP object as an enum
- Object
Type float64 - (Integer) The type of the KMIP object as an enum
- Updated
At string - (String) The date the resource was updated, in RFC 3339 format
- Updated
By string - (String) The IBM-ID of the identity that updated the resource
- Updated
By stringCert Id - (String) The ID of the certificate that updated the object
- created
At String - (String) The date the resource was created, in RFC 3339 format
- created
By String - (String) The IBM-ID of the identity that created the resource
- created
By StringCert Id - (String) The ID of the certificate that created the object
- destroyed
At String - (String) The date the resource was destroyed, in RFC 3339 format
- destroyed
By String - (String) The IBM-ID of the identity that destroyed the resource
- destroyed
By StringCert Id - (String) The ID of the certificate that destroyed the object
- object
Id String - (String) The id of the KMIP Object
- object
State Double - (Integer) The state of the KMIP object as an enum
- object
Type Double - (Integer) The type of the KMIP object as an enum
- updated
At String - (String) The date the resource was updated, in RFC 3339 format
- updated
By String - (String) The IBM-ID of the identity that updated the resource
- updated
By StringCert Id - (String) The ID of the certificate that updated the object
- created
At string - (String) The date the resource was created, in RFC 3339 format
- created
By string - (String) The IBM-ID of the identity that created the resource
- created
By stringCert Id - (String) The ID of the certificate that created the object
- destroyed
At string - (String) The date the resource was destroyed, in RFC 3339 format
- destroyed
By string - (String) The IBM-ID of the identity that destroyed the resource
- destroyed
By stringCert Id - (String) The ID of the certificate that destroyed the object
- object
Id string - (String) The id of the KMIP Object
- object
State number - (Integer) The state of the KMIP object as an enum
- object
Type number - (Integer) The type of the KMIP object as an enum
- updated
At string - (String) The date the resource was updated, in RFC 3339 format
- updated
By string - (String) The IBM-ID of the identity that updated the resource
- updated
By stringCert Id - (String) The ID of the certificate that updated the object
- created_
at str - (String) The date the resource was created, in RFC 3339 format
- created_
by str - (String) The IBM-ID of the identity that created the resource
- created_
by_ strcert_ id - (String) The ID of the certificate that created the object
- destroyed_
at str - (String) The date the resource was destroyed, in RFC 3339 format
- destroyed_
by str - (String) The IBM-ID of the identity that destroyed the resource
- destroyed_
by_ strcert_ id - (String) The ID of the certificate that destroyed the object
- object_
id str - (String) The id of the KMIP Object
- object_
state float - (Integer) The state of the KMIP object as an enum
- object_
type float - (Integer) The type of the KMIP object as an enum
- updated_
at str - (String) The date the resource was updated, in RFC 3339 format
- updated_
by str - (String) The IBM-ID of the identity that updated the resource
- updated_
by_ strcert_ id - (String) The ID of the certificate that updated the object
- created
At String - (String) The date the resource was created, in RFC 3339 format
- created
By String - (String) The IBM-ID of the identity that created the resource
- created
By StringCert Id - (String) The ID of the certificate that created the object
- destroyed
At String - (String) The date the resource was destroyed, in RFC 3339 format
- destroyed
By String - (String) The IBM-ID of the identity that destroyed the resource
- destroyed
By StringCert Id - (String) The ID of the certificate that destroyed the object
- object
Id String - (String) The id of the KMIP Object
- object
State Number - (Integer) The state of the KMIP object as an enum
- object
Type Number - (Integer) The type of the KMIP object as an enum
- updated
At String - (String) The date the resource was updated, in RFC 3339 format
- updated
By String - (String) The IBM-ID of the identity that updated the resource
- updated
By StringCert Id - (String) The ID of the certificate that updated the object
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.