ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getKmsKmipObject
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 object = myadapter.then(myadapter => ibm.getKmsKmipObject({
instanceId: ibm_resource_instance.kp_instance.guid,
adapterId: myadapter.id,
objectId: "<object-UUID>",
}));
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")
object = ibm.get_kms_kmip_object(instance_id=ibm_resource_instance["kp_instance"]["guid"],
adapter_id=myadapter.id,
object_id="<object-UUID>")
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.GetKmsKmipObject(ctx, &ibm.GetKmsKmipObjectArgs{
InstanceId: ibm_resource_instance.Kp_instance.Guid,
AdapterId: pulumi.StringRef(myadapter.Id),
ObjectId: "<object-UUID>",
}, 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 @object = Ibm.GetKmsKmipObject.Invoke(new()
{
InstanceId = ibm_resource_instance.Kp_instance.Guid,
AdapterId = myadapter.Apply(getKmsKmipAdapterResult => getKmsKmipAdapterResult.Id),
ObjectId = "<object-UUID>",
});
});
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.GetKmsKmipObjectArgs;
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 object = IbmFunctions.getKmsKmipObject(GetKmsKmipObjectArgs.builder()
.instanceId(ibm_resource_instance.kp_instance().guid())
.adapterId(myadapter.applyValue(getKmsKmipAdapterResult -> getKmsKmipAdapterResult.id()))
.objectId("<object-UUID>")
.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
object:
fn::invoke:
function: ibm:getKmsKmipObject
arguments:
instanceId: ${ibm_resource_instance.kp_instance.guid}
adapterId: ${myadapter.id}
objectId: <object-UUID>
Using getKmsKmipObject
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 getKmsKmipObject(args: GetKmsKmipObjectArgs, opts?: InvokeOptions): Promise<GetKmsKmipObjectResult>
function getKmsKmipObjectOutput(args: GetKmsKmipObjectOutputArgs, opts?: InvokeOptions): Output<GetKmsKmipObjectResult>
def get_kms_kmip_object(adapter_id: Optional[str] = None,
adapter_name: Optional[str] = None,
endpoint_type: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
object_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKmsKmipObjectResult
def get_kms_kmip_object_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,
object_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKmsKmipObjectResult]
func GetKmsKmipObject(ctx *Context, args *GetKmsKmipObjectArgs, opts ...InvokeOption) (*GetKmsKmipObjectResult, error)
func GetKmsKmipObjectOutput(ctx *Context, args *GetKmsKmipObjectOutputArgs, opts ...InvokeOption) GetKmsKmipObjectResultOutput
> Note: This function is named GetKmsKmipObject
in the Go SDK.
public static class GetKmsKmipObject
{
public static Task<GetKmsKmipObjectResult> InvokeAsync(GetKmsKmipObjectArgs args, InvokeOptions? opts = null)
public static Output<GetKmsKmipObjectResult> Invoke(GetKmsKmipObjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKmsKmipObjectResult> getKmsKmipObject(GetKmsKmipObjectArgs args, InvokeOptions options)
public static Output<GetKmsKmipObjectResult> getKmsKmipObject(GetKmsKmipObjectArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getKmsKmipObject:getKmsKmipObject
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The key protect instance GUID.
- Object
Id string - The id of the KMIP object to be fetched
- Adapter
Id string - The UUID of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_name
. One has to be given. - Adapter
Name string - The name of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_id
. One has to be given. - Endpoint
Type string - The type of the public endpoint, or private endpoint to be used for creating keys.
- Id string
- Instance
Id string - The key protect instance GUID.
- Object
Id string - The id of the KMIP object to be fetched
- Adapter
Id string - The UUID of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_name
. One has to be given. - Adapter
Name string - The name of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_id
. One has to be given. - Endpoint
Type string - The type of the public endpoint, or private endpoint to be used for creating keys.
- Id string
- instance
Id String - The key protect instance GUID.
- object
Id String - The id of the KMIP object to be fetched
- adapter
Id String - The UUID of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_name
. One has to be given. - adapter
Name String - The name of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_id
. One has to be given. - endpoint
Type String - The type of the public endpoint, or private endpoint to be used for creating keys.
- id String
- instance
Id string - The key protect instance GUID.
- object
Id string - The id of the KMIP object to be fetched
- adapter
Id string - The UUID of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_name
. One has to be given. - adapter
Name string - The name of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_id
. One has to be given. - endpoint
Type string - The type of the public endpoint, or private endpoint to be used for creating keys.
- id string
- instance_
id str - The key protect instance GUID.
- object_
id str - The id of the KMIP object to be fetched
- adapter_
id str - The UUID of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_name
. One has to be given. - adapter_
name str - The name of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_id
. One has to be given. - endpoint_
type str - The type of the public endpoint, or private endpoint to be used for creating keys.
- id str
- instance
Id String - The key protect instance GUID.
- object
Id String - The id of the KMIP object to be fetched
- adapter
Id String - The UUID of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_name
. One has to be given. - adapter
Name String - The name of the KMIP adapter to be fetched. Mutually exclusive argument with
adapter_id
. One has to be given. - endpoint
Type String - The type of the public endpoint, or private endpoint to be used for creating keys.
- id String
getKmsKmipObject Result
The following output properties are available:
- Adapter
Id string - Adapter
Name string - 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
- Endpoint
Type string - Id string
- Instance
Id string - Object
Id string - Object
State double - (Integer) The state of the KMIP object
- 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
- Adapter
Id string - Adapter
Name string - 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
- Endpoint
Type string - Id string
- Instance
Id string - Object
Id string - Object
State float64 - (Integer) The state of the KMIP object
- 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
- adapter
Id String - adapter
Name String - 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
- endpoint
Type String - id String
- instance
Id String - object
Id String - object
State Double - (Integer) The state of the KMIP object
- 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
- adapter
Id string - adapter
Name string - 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
- endpoint
Type string - id string
- instance
Id string - object
Id string - object
State number - (Integer) The state of the KMIP object
- 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
- adapter_
id str - adapter_
name str - 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
- endpoint_
type str - id str
- instance_
id str - object_
id str - object_
state float - (Integer) The state of the KMIP object
- 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
- adapter
Id String - adapter
Name String - 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
- endpoint
Type String - id String
- instance
Id String - object
Id String - object
State Number - (Integer) The state of the KMIP object
- 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.