ibm.HpcsKeyTemplate
Explore with Pulumi AI
Provides a resource for key_template. This allows key_template to be created, updated and deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const keyTemplateInstance = new ibm.HpcsKeyTemplate("keyTemplateInstance", {
instanceId: ibm_hpcs_vault.vault_instance.instance_id,
region: ibm_hpcs_vault.vault_instance.region,
ukoVault: ibm_hpcs_vault.vault_instance.vault_id,
vault: {
id: ibm_hpcs_vault.vault_instance.vault_id,
},
description: "example key template",
key: {
size: "256",
algorithm: "aes",
activationDate: "P5Y1M1W2D",
expirationDate: "P1Y2M1W4D",
state: "active",
},
keystores: [{
group: "Production",
type: "aws_kms",
}],
});
import pulumi
import pulumi_ibm as ibm
key_template_instance = ibm.HpcsKeyTemplate("keyTemplateInstance",
instance_id=ibm_hpcs_vault["vault_instance"]["instance_id"],
region=ibm_hpcs_vault["vault_instance"]["region"],
uko_vault=ibm_hpcs_vault["vault_instance"]["vault_id"],
vault={
"id": ibm_hpcs_vault["vault_instance"]["vault_id"],
},
description="example key template",
key={
"size": "256",
"algorithm": "aes",
"activation_date": "P5Y1M1W2D",
"expiration_date": "P1Y2M1W4D",
"state": "active",
},
keystores=[{
"group": "Production",
"type": "aws_kms",
}])
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.NewHpcsKeyTemplate(ctx, "keyTemplateInstance", &ibm.HpcsKeyTemplateArgs{
InstanceId: pulumi.Any(ibm_hpcs_vault.Vault_instance.Instance_id),
Region: pulumi.Any(ibm_hpcs_vault.Vault_instance.Region),
UkoVault: pulumi.Any(ibm_hpcs_vault.Vault_instance.Vault_id),
Vault: &ibm.HpcsKeyTemplateVaultArgs{
Id: pulumi.Any(ibm_hpcs_vault.Vault_instance.Vault_id),
},
Description: pulumi.String("example key template"),
Key: &ibm.HpcsKeyTemplateKeyArgs{
Size: pulumi.String("256"),
Algorithm: pulumi.String("aes"),
ActivationDate: pulumi.String("P5Y1M1W2D"),
ExpirationDate: pulumi.String("P1Y2M1W4D"),
State: pulumi.String("active"),
},
Keystores: ibm.HpcsKeyTemplateKeystoreArray{
&ibm.HpcsKeyTemplateKeystoreArgs{
Group: pulumi.String("Production"),
Type: pulumi.String("aws_kms"),
},
},
})
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 keyTemplateInstance = new Ibm.HpcsKeyTemplate("keyTemplateInstance", new()
{
InstanceId = ibm_hpcs_vault.Vault_instance.Instance_id,
Region = ibm_hpcs_vault.Vault_instance.Region,
UkoVault = ibm_hpcs_vault.Vault_instance.Vault_id,
Vault = new Ibm.Inputs.HpcsKeyTemplateVaultArgs
{
Id = ibm_hpcs_vault.Vault_instance.Vault_id,
},
Description = "example key template",
Key = new Ibm.Inputs.HpcsKeyTemplateKeyArgs
{
Size = "256",
Algorithm = "aes",
ActivationDate = "P5Y1M1W2D",
ExpirationDate = "P1Y2M1W4D",
State = "active",
},
Keystores = new[]
{
new Ibm.Inputs.HpcsKeyTemplateKeystoreArgs
{
Group = "Production",
Type = "aws_kms",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.HpcsKeyTemplate;
import com.pulumi.ibm.HpcsKeyTemplateArgs;
import com.pulumi.ibm.inputs.HpcsKeyTemplateVaultArgs;
import com.pulumi.ibm.inputs.HpcsKeyTemplateKeyArgs;
import com.pulumi.ibm.inputs.HpcsKeyTemplateKeystoreArgs;
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 keyTemplateInstance = new HpcsKeyTemplate("keyTemplateInstance", HpcsKeyTemplateArgs.builder()
.instanceId(ibm_hpcs_vault.vault_instance().instance_id())
.region(ibm_hpcs_vault.vault_instance().region())
.ukoVault(ibm_hpcs_vault.vault_instance().vault_id())
.vault(HpcsKeyTemplateVaultArgs.builder()
.id(ibm_hpcs_vault.vault_instance().vault_id())
.build())
.description("example key template")
.key(HpcsKeyTemplateKeyArgs.builder()
.size("256")
.algorithm("aes")
.activationDate("P5Y1M1W2D")
.expirationDate("P1Y2M1W4D")
.state("active")
.build())
.keystores(HpcsKeyTemplateKeystoreArgs.builder()
.group("Production")
.type("aws_kms")
.build())
.build());
}
}
resources:
keyTemplateInstance:
type: ibm:HpcsKeyTemplate
properties:
instanceId: ${ibm_hpcs_vault.vault_instance.instance_id}
region: ${ibm_hpcs_vault.vault_instance.region}
ukoVault: ${ibm_hpcs_vault.vault_instance.vault_id}
vault:
id: ${ibm_hpcs_vault.vault_instance.vault_id}
description: example key template
key:
size: '256'
algorithm: aes
activationDate: P5Y1M1W2D
expirationDate: P1Y2M1W4D
state: active
keystores:
- group: Production
type: aws_kms
Create HpcsKeyTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HpcsKeyTemplate(name: string, args: HpcsKeyTemplateArgs, opts?: CustomResourceOptions);
@overload
def HpcsKeyTemplate(resource_name: str,
args: HpcsKeyTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HpcsKeyTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
key: Optional[HpcsKeyTemplateKeyArgs] = None,
keystores: Optional[Sequence[HpcsKeyTemplateKeystoreArgs]] = None,
region: Optional[str] = None,
uko_vault: Optional[str] = None,
vault: Optional[HpcsKeyTemplateVaultArgs] = None,
description: Optional[str] = None,
hpcs_key_template_id: Optional[str] = None,
name: Optional[str] = None)
func NewHpcsKeyTemplate(ctx *Context, name string, args HpcsKeyTemplateArgs, opts ...ResourceOption) (*HpcsKeyTemplate, error)
public HpcsKeyTemplate(string name, HpcsKeyTemplateArgs args, CustomResourceOptions? opts = null)
public HpcsKeyTemplate(String name, HpcsKeyTemplateArgs args)
public HpcsKeyTemplate(String name, HpcsKeyTemplateArgs args, CustomResourceOptions options)
type: ibm:HpcsKeyTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HpcsKeyTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HpcsKeyTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HpcsKeyTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HpcsKeyTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HpcsKeyTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hpcsKeyTemplateResource = new Ibm.HpcsKeyTemplate("hpcsKeyTemplateResource", new()
{
InstanceId = "string",
Key = new Ibm.Inputs.HpcsKeyTemplateKeyArgs
{
ActivationDate = "string",
Algorithm = "string",
ExpirationDate = "string",
Size = "string",
State = "string",
},
Keystores = new[]
{
new Ibm.Inputs.HpcsKeyTemplateKeystoreArgs
{
Group = "string",
Type = "string",
GoogleKeyProtectionLevel = "string",
GoogleKeyPurpose = "string",
GoogleKmsAlgorithm = "string",
},
},
Region = "string",
UkoVault = "string",
Vault = new Ibm.Inputs.HpcsKeyTemplateVaultArgs
{
Id = "string",
},
Description = "string",
HpcsKeyTemplateId = "string",
Name = "string",
});
example, err := ibm.NewHpcsKeyTemplate(ctx, "hpcsKeyTemplateResource", &ibm.HpcsKeyTemplateArgs{
InstanceId: pulumi.String("string"),
Key: &ibm.HpcsKeyTemplateKeyArgs{
ActivationDate: pulumi.String("string"),
Algorithm: pulumi.String("string"),
ExpirationDate: pulumi.String("string"),
Size: pulumi.String("string"),
State: pulumi.String("string"),
},
Keystores: ibm.HpcsKeyTemplateKeystoreArray{
&ibm.HpcsKeyTemplateKeystoreArgs{
Group: pulumi.String("string"),
Type: pulumi.String("string"),
GoogleKeyProtectionLevel: pulumi.String("string"),
GoogleKeyPurpose: pulumi.String("string"),
GoogleKmsAlgorithm: pulumi.String("string"),
},
},
Region: pulumi.String("string"),
UkoVault: pulumi.String("string"),
Vault: &ibm.HpcsKeyTemplateVaultArgs{
Id: pulumi.String("string"),
},
Description: pulumi.String("string"),
HpcsKeyTemplateId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var hpcsKeyTemplateResource = new HpcsKeyTemplate("hpcsKeyTemplateResource", HpcsKeyTemplateArgs.builder()
.instanceId("string")
.key(HpcsKeyTemplateKeyArgs.builder()
.activationDate("string")
.algorithm("string")
.expirationDate("string")
.size("string")
.state("string")
.build())
.keystores(HpcsKeyTemplateKeystoreArgs.builder()
.group("string")
.type("string")
.googleKeyProtectionLevel("string")
.googleKeyPurpose("string")
.googleKmsAlgorithm("string")
.build())
.region("string")
.ukoVault("string")
.vault(HpcsKeyTemplateVaultArgs.builder()
.id("string")
.build())
.description("string")
.hpcsKeyTemplateId("string")
.name("string")
.build());
hpcs_key_template_resource = ibm.HpcsKeyTemplate("hpcsKeyTemplateResource",
instance_id="string",
key={
"activation_date": "string",
"algorithm": "string",
"expiration_date": "string",
"size": "string",
"state": "string",
},
keystores=[{
"group": "string",
"type": "string",
"google_key_protection_level": "string",
"google_key_purpose": "string",
"google_kms_algorithm": "string",
}],
region="string",
uko_vault="string",
vault={
"id": "string",
},
description="string",
hpcs_key_template_id="string",
name="string")
const hpcsKeyTemplateResource = new ibm.HpcsKeyTemplate("hpcsKeyTemplateResource", {
instanceId: "string",
key: {
activationDate: "string",
algorithm: "string",
expirationDate: "string",
size: "string",
state: "string",
},
keystores: [{
group: "string",
type: "string",
googleKeyProtectionLevel: "string",
googleKeyPurpose: "string",
googleKmsAlgorithm: "string",
}],
region: "string",
ukoVault: "string",
vault: {
id: "string",
},
description: "string",
hpcsKeyTemplateId: "string",
name: "string",
});
type: ibm:HpcsKeyTemplate
properties:
description: string
hpcsKeyTemplateId: string
instanceId: string
key:
activationDate: string
algorithm: string
expirationDate: string
size: string
state: string
keystores:
- googleKeyProtectionLevel: string
googleKeyPurpose: string
googleKmsAlgorithm: string
group: string
type: string
name: string
region: string
ukoVault: string
vault:
id: string
HpcsKeyTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HpcsKeyTemplate resource accepts the following input properties:
- Instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- Key
Hpcs
Key Template Key - Properties describing the properties of the managed key. Nested scheme for key:
- Keystores
List<Hpcs
Key Template Keystore> - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- Region string
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- Uko
Vault string - The UUID of the Vault in which the update is to take place.
- Vault
Hpcs
Key Template Vault - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- Description string
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- Hpcs
Key stringTemplate Id - Name string
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- Instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- Key
Hpcs
Key Template Key Args - Properties describing the properties of the managed key. Nested scheme for key:
- Keystores
[]Hpcs
Key Template Keystore Args - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- Region string
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- Uko
Vault string - The UUID of the Vault in which the update is to take place.
- Vault
Hpcs
Key Template Vault Args - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- Description string
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- Hpcs
Key stringTemplate Id - Name string
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key
Hpcs
Key Template Key - Properties describing the properties of the managed key. Nested scheme for key:
- keystores
List<Hpcs
Key Template Keystore> - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- region String
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko
Vault String - The UUID of the Vault in which the update is to take place.
- vault
Hpcs
Key Template Vault - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- description String
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs
Key StringTemplate Id - name String
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key
Hpcs
Key Template Key - Properties describing the properties of the managed key. Nested scheme for key:
- keystores
Hpcs
Key Template Keystore[] - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- region string
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko
Vault string - The UUID of the Vault in which the update is to take place.
- vault
Hpcs
Key Template Vault - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- description string
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs
Key stringTemplate Id - name string
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- instance_
id str - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key
Hpcs
Key Template Key Args - Properties describing the properties of the managed key. Nested scheme for key:
- keystores
Sequence[Hpcs
Key Template Keystore Args] - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- region str
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko_
vault str - The UUID of the Vault in which the update is to take place.
- vault
Hpcs
Key Template Vault Args - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- description str
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs_
key_ strtemplate_ id - name str
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- instance
Id String - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key Property Map
- Properties describing the properties of the managed key. Nested scheme for key:
- keystores List<Property Map>
- An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- region String
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko
Vault String - The UUID of the Vault in which the update is to take place.
- vault Property Map
- ID of the Vault where the entity is to be created in. Nested scheme for vault:
- description String
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs
Key StringTemplate Id - name String
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
Outputs
All input properties are implicitly available as output properties. Additionally, the HpcsKeyTemplate resource produces the following output properties:
- Created
At string - (String) Date and time when the key template was created.
- Created
By string - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Href string
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - (String) Date and time when the key template was updated.
- Updated
By string - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Version string
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- Created
At string - (String) Date and time when the key template was created.
- Created
By string - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Href string
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - (String) Date and time when the key template was updated.
- Updated
By string - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Version string
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created
At String - (String) Date and time when the key template was created.
- created
By String - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- href String
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - (String) Date and time when the key template was updated.
- updated
By String - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- version String
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created
At string - (String) Date and time when the key template was created.
- created
By string - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- href string
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - (String) Date and time when the key template was updated.
- updated
By string - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- version string
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created_
at str - (String) Date and time when the key template was created.
- created_
by str - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- href str
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - (String) Date and time when the key template was updated.
- updated_
by str - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- version str
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created
At String - (String) Date and time when the key template was created.
- created
By String - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- href String
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - (String) Date and time when the key template was updated.
- updated
By String - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- version String
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
Look up Existing HpcsKeyTemplate Resource
Get an existing HpcsKeyTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HpcsKeyTemplateState, opts?: CustomResourceOptions): HpcsKeyTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
hpcs_key_template_id: Optional[str] = None,
href: Optional[str] = None,
instance_id: Optional[str] = None,
key: Optional[HpcsKeyTemplateKeyArgs] = None,
keystores: Optional[Sequence[HpcsKeyTemplateKeystoreArgs]] = None,
name: Optional[str] = None,
region: Optional[str] = None,
uko_vault: Optional[str] = None,
updated_at: Optional[str] = None,
updated_by: Optional[str] = None,
vault: Optional[HpcsKeyTemplateVaultArgs] = None,
version: Optional[str] = None) -> HpcsKeyTemplate
func GetHpcsKeyTemplate(ctx *Context, name string, id IDInput, state *HpcsKeyTemplateState, opts ...ResourceOption) (*HpcsKeyTemplate, error)
public static HpcsKeyTemplate Get(string name, Input<string> id, HpcsKeyTemplateState? state, CustomResourceOptions? opts = null)
public static HpcsKeyTemplate get(String name, Output<String> id, HpcsKeyTemplateState state, CustomResourceOptions options)
resources: _: type: ibm:HpcsKeyTemplate get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - (String) Date and time when the key template was created.
- Created
By string - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Description string
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- Hpcs
Key stringTemplate Id - Href string
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- Instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- Key
Hpcs
Key Template Key - Properties describing the properties of the managed key. Nested scheme for key:
- Keystores
List<Hpcs
Key Template Keystore> - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- Name string
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- Region string
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- Uko
Vault string - The UUID of the Vault in which the update is to take place.
- Updated
At string - (String) Date and time when the key template was updated.
- Updated
By string - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Vault
Hpcs
Key Template Vault - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- Version string
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- Created
At string - (String) Date and time when the key template was created.
- Created
By string - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Description string
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- Hpcs
Key stringTemplate Id - Href string
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- Instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- Key
Hpcs
Key Template Key Args - Properties describing the properties of the managed key. Nested scheme for key:
- Keystores
[]Hpcs
Key Template Keystore Args - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- Name string
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- Region string
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- Uko
Vault string - The UUID of the Vault in which the update is to take place.
- Updated
At string - (String) Date and time when the key template was updated.
- Updated
By string - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- Vault
Hpcs
Key Template Vault Args - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- Version string
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created
At String - (String) Date and time when the key template was created.
- created
By String - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- description String
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs
Key StringTemplate Id - href String
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- instance
Id String - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key
Hpcs
Key Template Key - Properties describing the properties of the managed key. Nested scheme for key:
- keystores
List<Hpcs
Key Template Keystore> - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- name String
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- region String
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko
Vault String - The UUID of the Vault in which the update is to take place.
- updated
At String - (String) Date and time when the key template was updated.
- updated
By String - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- vault
Hpcs
Key Template Vault - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- version String
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created
At string - (String) Date and time when the key template was created.
- created
By string - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- description string
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs
Key stringTemplate Id - href string
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key
Hpcs
Key Template Key - Properties describing the properties of the managed key. Nested scheme for key:
- keystores
Hpcs
Key Template Keystore[] - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- name string
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- region string
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko
Vault string - The UUID of the Vault in which the update is to take place.
- updated
At string - (String) Date and time when the key template was updated.
- updated
By string - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- vault
Hpcs
Key Template Vault - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- version string
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created_
at str - (String) Date and time when the key template was created.
- created_
by str - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- description str
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs_
key_ strtemplate_ id - href str
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- instance_
id str - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key
Hpcs
Key Template Key Args - Properties describing the properties of the managed key. Nested scheme for key:
- keystores
Sequence[Hpcs
Key Template Keystore Args] - An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- name str
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- region str
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko_
vault str - The UUID of the Vault in which the update is to take place.
- updated_
at str - (String) Date and time when the key template was updated.
- updated_
by str - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- vault
Hpcs
Key Template Vault Args - ID of the Vault where the entity is to be created in. Nested scheme for vault:
- version str
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
- created
At String - (String) Date and time when the key template was created.
- created
By String - (String) ID of the user that created the key template.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- description String
- Description of the key template.
- Constraints: The maximum length is
200
characters. The minimum length is0
characters. The value must match regular expression/(.|\\n)*/
.
- Constraints: The maximum length is
- hpcs
Key StringTemplate Id - href String
- (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/
.
- Constraints: The maximum length is
- instance
Id String - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
- key Property Map
- Properties describing the properties of the managed key. Nested scheme for key:
- keystores List<Property Map>
- An array describing the type and group of target keystores the managed key is to be installed in.
- Constraints: The maximum length is
1
item. The minimum length is1
item. Nested scheme for keystores:
- Constraints: The maximum length is
- name String
- Name of the template, it will be referenced when creating managed keys.
- Constraints: The maximum length is
30
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z][A-Za-z0-9-]*$/
.
- Constraints: The maximum length is
- region String
- Region of the UKO Instance
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
au-syd
,in-che
,jp-osa
,jp-tok
,kr-seo
,eu-de
,eu-gb
,ca-tor
,us-south
,us-south-test
,us-east
,br-sao
.
- Constraints: Must match the region of the UKO instance you are trying to work with. Allowable values are:
- uko
Vault String - The UUID of the Vault in which the update is to take place.
- updated
At String - (String) Date and time when the key template was updated.
- updated
By String - (String) ID of the user that updated the key.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9-]+$/
.
- Constraints: The maximum length is
- vault Property Map
- ID of the Vault where the entity is to be created in. Nested scheme for vault:
- version String
- (Integer) Version of the key template. Every time the key template is updated, the version will be updated automatically.
- Constraints: The maximum value is
2147483647
. The minimum value is1
.
- Constraints: The maximum value is
Supporting Types
HpcsKeyTemplateKey, HpcsKeyTemplateKeyArgs
- Activation
Date string - Key activation date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- Algorithm string
- The algorithm of the key.
- Constraints: Allowable values are:
aes
,rsa
,hmac
,ec
.
- Constraints: Allowable values are:
- Expiration
Date string - Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- Size string
- The size of the underlying cryptographic key or key pair. E.g. "256" for AES keys, or "2048" for RSA.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9]+$/
.
- Constraints: The maximum length is
- State string
- The state that the key will be in after generation.
- Constraints: The default value is
active
. Allowable values are:pre_activation
,active
.
- Constraints: The default value is
- Activation
Date string - Key activation date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- Algorithm string
- The algorithm of the key.
- Constraints: Allowable values are:
aes
,rsa
,hmac
,ec
.
- Constraints: Allowable values are:
- Expiration
Date string - Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- Size string
- The size of the underlying cryptographic key or key pair. E.g. "256" for AES keys, or "2048" for RSA.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9]+$/
.
- Constraints: The maximum length is
- State string
- The state that the key will be in after generation.
- Constraints: The default value is
active
. Allowable values are:pre_activation
,active
.
- Constraints: The default value is
- activation
Date String - Key activation date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- algorithm String
- The algorithm of the key.
- Constraints: Allowable values are:
aes
,rsa
,hmac
,ec
.
- Constraints: Allowable values are:
- expiration
Date String - Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- size String
- The size of the underlying cryptographic key or key pair. E.g. "256" for AES keys, or "2048" for RSA.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9]+$/
.
- Constraints: The maximum length is
- state String
- The state that the key will be in after generation.
- Constraints: The default value is
active
. Allowable values are:pre_activation
,active
.
- Constraints: The default value is
- activation
Date string - Key activation date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- algorithm string
- The algorithm of the key.
- Constraints: Allowable values are:
aes
,rsa
,hmac
,ec
.
- Constraints: Allowable values are:
- expiration
Date string - Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- size string
- The size of the underlying cryptographic key or key pair. E.g. "256" for AES keys, or "2048" for RSA.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9]+$/
.
- Constraints: The maximum length is
- state string
- The state that the key will be in after generation.
- Constraints: The default value is
active
. Allowable values are:pre_activation
,active
.
- Constraints: The default value is
- activation_
date str - Key activation date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- algorithm str
- The algorithm of the key.
- Constraints: Allowable values are:
aes
,rsa
,hmac
,ec
.
- Constraints: Allowable values are:
- expiration_
date str - Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- size str
- The size of the underlying cryptographic key or key pair. E.g. "256" for AES keys, or "2048" for RSA.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9]+$/
.
- Constraints: The maximum length is
- state str
- The state that the key will be in after generation.
- Constraints: The default value is
active
. Allowable values are:pre_activation
,active
.
- Constraints: The default value is
- activation
Date String - Key activation date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- algorithm String
- The algorithm of the key.
- Constraints: Allowable values are:
aes
,rsa
,hmac
,ec
.
- Constraints: Allowable values are:
- expiration
Date String - Key expiration date can be provided as a period definition (e.g. PY1 means 1 year).
- Constraints: The maximum length is
100
characters. The minimum length is3
characters. The value must match regular expression/P^[0-9YMWD]+$/
.
- Constraints: The maximum length is
- size String
- The size of the underlying cryptographic key or key pair. E.g. "256" for AES keys, or "2048" for RSA.
- Constraints: The maximum length is
100
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9]+$/
.
- Constraints: The maximum length is
- state String
- The state that the key will be in after generation.
- Constraints: The default value is
active
. Allowable values are:pre_activation
,active
.
- Constraints: The default value is
HpcsKeyTemplateKeystore, HpcsKeyTemplateKeystoreArgs
- Group string
- Which keystore group to distribute the key to.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9-_ ]+$/
.
- Constraints: The maximum length is
- Type string
- Type of keystore.
- Constraints: Allowable values are:
aws_kms
,azure_key_vault
,ibm_cloud_kms
,google_kms
.
- Constraints: Allowable values are:
- Google
Key stringProtection Level - Constraints: Allowable values are:
software
,hsm
.
- Constraints: Allowable values are:
- Google
Key stringPurpose - Constraints: Allowable values are:
encrypt_decrypt
,asymmetric_decrypt
,asymmetric_sign
,mac
.
- Constraints: Allowable values are:
- Google
Kms stringAlgorithm - Constraints: Allowable values are:
google_symmetric_encryption
,ec_sign_p256_sha256
,ec_sign_p384_sha384
,ec_sign_secp256k1_sha256
,rsa_sign_pss_2048_sha256
,rsa_sign_pss_3072_sha256
,rsa_sign_pss_4096_sha256
,rsa_sign_pss_4096_sha512
,rsa_sign_pkcs1_2048_sha256
,rsa_sign_pkcs1_3072_sha256
,rsa_sign_pkcs1_4096_sha256
,rsa_sign_pkcs1_4096_sha512
,rsa_sign_raw_pkcs1_2048
,rsa_sign_raw_pkcs1_3072
,rsa_sign_raw_pkcs1_4096
,rsa_decrypt_oaep_2048_sha1
,rsa_decrypt_oaep_2048_sha256
,rsa_decrypt_oaep_3072_sha1
,rsa_decrypt_oaep_3072_sha256
,rsa_decrypt_oaep_4096_sha1
,rsa_decrypt_oaep_4096_sha256
,rsa_decrypt_oaep_4096_sha512
,hmac_sha256
.
- Constraints: Allowable values are:
- Group string
- Which keystore group to distribute the key to.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9-_ ]+$/
.
- Constraints: The maximum length is
- Type string
- Type of keystore.
- Constraints: Allowable values are:
aws_kms
,azure_key_vault
,ibm_cloud_kms
,google_kms
.
- Constraints: Allowable values are:
- Google
Key stringProtection Level - Constraints: Allowable values are:
software
,hsm
.
- Constraints: Allowable values are:
- Google
Key stringPurpose - Constraints: Allowable values are:
encrypt_decrypt
,asymmetric_decrypt
,asymmetric_sign
,mac
.
- Constraints: Allowable values are:
- Google
Kms stringAlgorithm - Constraints: Allowable values are:
google_symmetric_encryption
,ec_sign_p256_sha256
,ec_sign_p384_sha384
,ec_sign_secp256k1_sha256
,rsa_sign_pss_2048_sha256
,rsa_sign_pss_3072_sha256
,rsa_sign_pss_4096_sha256
,rsa_sign_pss_4096_sha512
,rsa_sign_pkcs1_2048_sha256
,rsa_sign_pkcs1_3072_sha256
,rsa_sign_pkcs1_4096_sha256
,rsa_sign_pkcs1_4096_sha512
,rsa_sign_raw_pkcs1_2048
,rsa_sign_raw_pkcs1_3072
,rsa_sign_raw_pkcs1_4096
,rsa_decrypt_oaep_2048_sha1
,rsa_decrypt_oaep_2048_sha256
,rsa_decrypt_oaep_3072_sha1
,rsa_decrypt_oaep_3072_sha256
,rsa_decrypt_oaep_4096_sha1
,rsa_decrypt_oaep_4096_sha256
,rsa_decrypt_oaep_4096_sha512
,hmac_sha256
.
- Constraints: Allowable values are:
- group String
- Which keystore group to distribute the key to.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9-_ ]+$/
.
- Constraints: The maximum length is
- type String
- Type of keystore.
- Constraints: Allowable values are:
aws_kms
,azure_key_vault
,ibm_cloud_kms
,google_kms
.
- Constraints: Allowable values are:
- google
Key StringProtection Level - Constraints: Allowable values are:
software
,hsm
.
- Constraints: Allowable values are:
- google
Key StringPurpose - Constraints: Allowable values are:
encrypt_decrypt
,asymmetric_decrypt
,asymmetric_sign
,mac
.
- Constraints: Allowable values are:
- google
Kms StringAlgorithm - Constraints: Allowable values are:
google_symmetric_encryption
,ec_sign_p256_sha256
,ec_sign_p384_sha384
,ec_sign_secp256k1_sha256
,rsa_sign_pss_2048_sha256
,rsa_sign_pss_3072_sha256
,rsa_sign_pss_4096_sha256
,rsa_sign_pss_4096_sha512
,rsa_sign_pkcs1_2048_sha256
,rsa_sign_pkcs1_3072_sha256
,rsa_sign_pkcs1_4096_sha256
,rsa_sign_pkcs1_4096_sha512
,rsa_sign_raw_pkcs1_2048
,rsa_sign_raw_pkcs1_3072
,rsa_sign_raw_pkcs1_4096
,rsa_decrypt_oaep_2048_sha1
,rsa_decrypt_oaep_2048_sha256
,rsa_decrypt_oaep_3072_sha1
,rsa_decrypt_oaep_3072_sha256
,rsa_decrypt_oaep_4096_sha1
,rsa_decrypt_oaep_4096_sha256
,rsa_decrypt_oaep_4096_sha512
,hmac_sha256
.
- Constraints: Allowable values are:
- group string
- Which keystore group to distribute the key to.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9-_ ]+$/
.
- Constraints: The maximum length is
- type string
- Type of keystore.
- Constraints: Allowable values are:
aws_kms
,azure_key_vault
,ibm_cloud_kms
,google_kms
.
- Constraints: Allowable values are:
- google
Key stringProtection Level - Constraints: Allowable values are:
software
,hsm
.
- Constraints: Allowable values are:
- google
Key stringPurpose - Constraints: Allowable values are:
encrypt_decrypt
,asymmetric_decrypt
,asymmetric_sign
,mac
.
- Constraints: Allowable values are:
- google
Kms stringAlgorithm - Constraints: Allowable values are:
google_symmetric_encryption
,ec_sign_p256_sha256
,ec_sign_p384_sha384
,ec_sign_secp256k1_sha256
,rsa_sign_pss_2048_sha256
,rsa_sign_pss_3072_sha256
,rsa_sign_pss_4096_sha256
,rsa_sign_pss_4096_sha512
,rsa_sign_pkcs1_2048_sha256
,rsa_sign_pkcs1_3072_sha256
,rsa_sign_pkcs1_4096_sha256
,rsa_sign_pkcs1_4096_sha512
,rsa_sign_raw_pkcs1_2048
,rsa_sign_raw_pkcs1_3072
,rsa_sign_raw_pkcs1_4096
,rsa_decrypt_oaep_2048_sha1
,rsa_decrypt_oaep_2048_sha256
,rsa_decrypt_oaep_3072_sha1
,rsa_decrypt_oaep_3072_sha256
,rsa_decrypt_oaep_4096_sha1
,rsa_decrypt_oaep_4096_sha256
,rsa_decrypt_oaep_4096_sha512
,hmac_sha256
.
- Constraints: Allowable values are:
- group str
- Which keystore group to distribute the key to.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9-_ ]+$/
.
- Constraints: The maximum length is
- type str
- Type of keystore.
- Constraints: Allowable values are:
aws_kms
,azure_key_vault
,ibm_cloud_kms
,google_kms
.
- Constraints: Allowable values are:
- google_
key_ strprotection_ level - Constraints: Allowable values are:
software
,hsm
.
- Constraints: Allowable values are:
- google_
key_ strpurpose - Constraints: Allowable values are:
encrypt_decrypt
,asymmetric_decrypt
,asymmetric_sign
,mac
.
- Constraints: Allowable values are:
- google_
kms_ stralgorithm - Constraints: Allowable values are:
google_symmetric_encryption
,ec_sign_p256_sha256
,ec_sign_p384_sha384
,ec_sign_secp256k1_sha256
,rsa_sign_pss_2048_sha256
,rsa_sign_pss_3072_sha256
,rsa_sign_pss_4096_sha256
,rsa_sign_pss_4096_sha512
,rsa_sign_pkcs1_2048_sha256
,rsa_sign_pkcs1_3072_sha256
,rsa_sign_pkcs1_4096_sha256
,rsa_sign_pkcs1_4096_sha512
,rsa_sign_raw_pkcs1_2048
,rsa_sign_raw_pkcs1_3072
,rsa_sign_raw_pkcs1_4096
,rsa_decrypt_oaep_2048_sha1
,rsa_decrypt_oaep_2048_sha256
,rsa_decrypt_oaep_3072_sha1
,rsa_decrypt_oaep_3072_sha256
,rsa_decrypt_oaep_4096_sha1
,rsa_decrypt_oaep_4096_sha256
,rsa_decrypt_oaep_4096_sha512
,hmac_sha256
.
- Constraints: Allowable values are:
- group String
- Which keystore group to distribute the key to.
- Constraints: The maximum length is
200
characters. The minimum length is1
character. The value must match regular expression/^[A-Za-z0-9][A-Za-z0-9-_ ]+$/
.
- Constraints: The maximum length is
- type String
- Type of keystore.
- Constraints: Allowable values are:
aws_kms
,azure_key_vault
,ibm_cloud_kms
,google_kms
.
- Constraints: Allowable values are:
- google
Key StringProtection Level - Constraints: Allowable values are:
software
,hsm
.
- Constraints: Allowable values are:
- google
Key StringPurpose - Constraints: Allowable values are:
encrypt_decrypt
,asymmetric_decrypt
,asymmetric_sign
,mac
.
- Constraints: Allowable values are:
- google
Kms StringAlgorithm - Constraints: Allowable values are:
google_symmetric_encryption
,ec_sign_p256_sha256
,ec_sign_p384_sha384
,ec_sign_secp256k1_sha256
,rsa_sign_pss_2048_sha256
,rsa_sign_pss_3072_sha256
,rsa_sign_pss_4096_sha256
,rsa_sign_pss_4096_sha512
,rsa_sign_pkcs1_2048_sha256
,rsa_sign_pkcs1_3072_sha256
,rsa_sign_pkcs1_4096_sha256
,rsa_sign_pkcs1_4096_sha512
,rsa_sign_raw_pkcs1_2048
,rsa_sign_raw_pkcs1_3072
,rsa_sign_raw_pkcs1_4096
,rsa_decrypt_oaep_2048_sha1
,rsa_decrypt_oaep_2048_sha256
,rsa_decrypt_oaep_3072_sha1
,rsa_decrypt_oaep_3072_sha256
,rsa_decrypt_oaep_4096_sha1
,rsa_decrypt_oaep_4096_sha256
,rsa_decrypt_oaep_4096_sha512
,hmac_sha256
.
- Constraints: Allowable values are:
HpcsKeyTemplateVault, HpcsKeyTemplateVaultArgs
- Id string
- The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[-0-9a-z]+$/
.
- Constraints: The maximum length is
- Id string
- The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[-0-9a-z]+$/
.
- Constraints: The maximum length is
- id String
- The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[-0-9a-z]+$/
.
- Constraints: The maximum length is
- id string
- The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[-0-9a-z]+$/
.
- Constraints: The maximum length is
- id str
- The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[-0-9a-z]+$/
.
- Constraints: The maximum length is
- id String
- The v4 UUID used to uniquely identify the resource, as specified by RFC 4122.
- Constraints: The maximum length is
36
characters. The minimum length is36
characters. The value must match regular expression/^[-0-9a-z]+$/
.
- Constraints: The maximum length is
Import
You can import the ibm_hpcs_key_template
resource by using region
, instance_id
, vault_id
, and template_id
.
Syntax
bash
$ pulumi import ibm:index/hpcsKeyTemplate:HpcsKeyTemplate template <region>/<instance_id>/<vault_id>/<template_id>
Example
$ pulumi import ibm:index/hpcsKeyTemplate:HpcsKeyTemplate key_template us-east/76195d24-8a31-4c6d-9050-c35f09375cfb/5295ad47-2ce9-43c3-b9e7-e5a9482c362b/d8cc1ef7-d13b-4731-95be-1f7c98c9f524
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.