vania-janet/multiturn-rag-retrieval-data huggingface dataset:
UK South (lon02, lon04, lon05, lon06) 141.125.102.106, 141.125.66.26, 141.125.67.34, 141.125.77.58, 141.125.91.138, 158.175.111.42, 158.175.125.194, 158.175.139.130, 158.175.150.122, 158.175.65.170, 158.175.77.178, 158.175.82.50, 158.176.123.130, 158.176.135.242, 158.176.142.26, 158.176.149.154, 158.176.71.242, 158.176.94.26, 158.176.95.146, 159.122.224.242, 159.122.242.78 
 US East (mon01, wdc04, wdc06, wdc07) 158.85.97.34, 169.47.162.130, 169.47.174.106, 169.53.167.50, 169.53.171.210, 169.54.126.219, 169.54.80.106, 169.54.94.26, 169.60.100.242, 169.60.101.42, 169.60.111.58, 169.60.73.142, 169.60.92.50, 169.60.92.66, 169.61.109.34, 169.61.110.66, 169.61.74.210, 169.61.83.62, 169.62.10.162, 169.62.9.250, 169.63.106.50, 169.63.111.82, 169.63.149.122, 169.63.158.82, 169.63.160.130, 169.63.66.226, 169.63.75.82, 169.63.88.178, 169.63.88.186, 169.63.94.210, 52.117.72.42, 52.117.88.42
0":0}]},{"name":"measure","qubits":11],"sequence":{"ch":"m11","label":"M_m11","name":"parametric_pulse","parameters":{"amp":0.05817055972291986,-0.355269173981535],"duration":2240,"sigma":64,"width":1984},"pulse_shape":"gaussian_square","t0":0},{"ch":"m11","duration":1616,"name":"delay","t0":2240},{"duration":2240,"memory_slot":0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"name":"acquire","qubits":0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"t0":0}]},{"name":"measure","qubits":12],"sequence":{"ch":"m12","label":"M_m12","name":"parametric_pulse","parameters":{"amp":0.2689282414516953,0.07795896965518907],"duration":2240,"sigma":64,"width":1984},"
],23],24],25],26]],"name":"x","parameters":],"qasm_def":"gate x q { U(pi, 0, pi) q; }"},{"coupling_map":0,1],1,0],1,2],1,4],2,1],2,3],3,2],3,5],4,1],4,7],5,3],5,8],6,7],7,4],7,6],7,10],8,5],8,9],8,11],9,8],10,7],10,12],11,8],11,14],12,10],12,13],12,15],13,12],13,14],14,11],14,13],14,16],15,12],15,18],16,14],16,19],17,18],18,15],18,17],18,21],19,16],19,20],19,22],20,19],21,18],21,23],22,19],22,25],23,21],23,24],24,23],24,25],25,22],25,24],25,26],26,25]],"name":"cx","parameters":],"qasm_def":"gate cx q0, q1 { CX q0, q1; }"},{"coupling_map":],"name":"reset","parameters":null,"qasm_def":null}],"hamiltonian":{"description":"Qubits are modeled as Duffing oscillators. In this case, the system includes higher energy states, i.e. not just |0u003e and |1u003e.
":{"qubits":[2]},"purpose":"measure","type":"measure"},"m20":{"operates":{"qubits":[20]},"purpose":"measure","type":"measure"},"m21":{"operates":{"qubits":[21]},"purpose":"measure","type":"measure"},"m22":{"operates":{"qubits":[22]},"purpose":"measure","type":"measure"},"m23":{"operates":{"qubits":[23]},"purpose":"measure","type":"measure"},"m24":{"operates":{"qubits":[24]},"purpose":"measure","type":"measure"},"m25":{"operates":{"qubits":[25]},"purpose":"measure","type":"measure"},"m26":{"operates":{"qubits":[26]},"purpose":"measure","type":"measure"},"m3":{"operates":{"qubits":[3]},"purpose":"measure","type":"measure"},"m4":{"operates":{"qubits":[4]},"purpose":"measure","type":"measure"},"m5":{"operates":{"qubits":[5]},"purpose":"measure","type":"measure"},"m6":{"operates":{"qubits":[6]},"purpose":"
pulse","parameters":{"amp":0.33555173389253773,0.1340778071376747],"duration":576,"sigma":64,"width":320},"pulse_shape":"gaussian_square","t0":160},{"ch":"u12","label":"CR90m_u12","name":"parametric_pulse","parameters":{"amp":-0.33555173389253773,-0.13407780713767467],"duration":576,"sigma":64,"width":320},"pulse_shape":"gaussian_square","t0":896},{"ch":"u14","name":"fc","phase":1.5707963267948966,"t0":0}]},{"name":"cx","qubits":7,4],"sequence":{"ch":"d4","name":"fc","phase":-3.141592653589793,"t0":0},{"ch":"d4","label":"Y90p_d4","name":"parametric_pulse","parameters":{"amp":-0.0010006507509606616,0.09398545949749511],"beta":-0.8252889412167893,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0},{"ch":"d
03-29T16:20:11Z","name":"frequency","unit":"GHz","value":5.21367755332974},{"date":"2022-03-29T16:20:11Z","name":"anharmonicity","unit":"GHz","value":-0.33915525932960816},{"date":"2022-03-29T04:38:44Z","name":"readout_error","unit":"","value":0.008799999999999919},{"date":"2022-03-29T04:38:44Z","name":"prob_meas0_prep1","unit":"","value":0.0104},{"date":"2022-03-29T04:38:44Z","name":"prob_meas1_prep0","unit":"","value":0.007199999999999984},{"date":"2022-03-29T04:38:44Z","name":"readout_length","unit":"ns","value":856.8888888888888}],{"date":"2022-
,-73.746 40.868,-73.751 40.868,-73.821 40.887,-73.826 40.886,-73.84 40.89,-73.844 40.896,-73.844 40.9,-73.85 40.903,-73.853 40.903,-73.854 40.9,-73.859 40.896,-73.909 40.911,-73.92 40.912,-73.923 40.914,-73.923 40.918,-73.901 40.979,-73.894 41.023,-73.893 41.043,-73.896 41.071,-73.894 41.137,-73.94 41.207,-73.965 41.24,-73.973 41.244,-73.975 41.247,-73.976 41.257,-73.973 41.266,-73.95 41.288,-73.966 41.296,-73.98 41.309,-73.984 41.311,-73.987 41.315,-73.987 41.322,-73.984 41.325))'
","name":"parametric_pulse","parameters":{"amp":0.019738355557227263,0],"duration":4800,"sigma":64,"width":4544},"pulse_shape":"gaussian_square","t0":160},{"ch":"d16","label":"CR90m_d16_u40","name":"parametric_pulse","parameters":{"amp":-0.019738355557227263,2.417251395359074e-18],"duration":4800,"sigma":64,"width":4544},"pulse_shape":"gaussian_square","t0":5120},{"ch":"d19","name":"fc","phase":1.5707963267948966,"t0":0},{"ch":"d19","label":"Ym_d19","name":"parametric_pulse","parameters":{"amp":-3.843197842571138e-17,-0.2092139461623777],"beta":-0.8915174347061647,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0},{"ch":"d19","label":"Xp_d19","name":"parametric_pulse","parameters":{"amp":0.2092139461623777
0.00005285775478114374],0.01603776402771473,0.00005207596404943615],0.015795191749930382,0.00005128830889589153],0.015550952404737473,0.00005049524406786077],0.015305186621844769,0.00004969722431269474],0.015058033168315887,0.00004889469710178673],0.014809629879891872,0.00004808810990653001],0.014560114592313766,0.00004727791383629665],0.014309622347354889,0.000046464545448543504],0.014058288186788559,0.00004564844130072743],0.013806247152388096,0.000044830041588284075],0.013553629629313946,0.00004400977195473388],0.013300567865371704,0.000043188058043597266],0.013047190383076668,0.00004236532186041586],0.01279362477362156,0.000041541974496794865],0.012539996765553951
15,18],16,14],16,19],17,18],18,15],18,17],18,21],19,16],19,20],19,22],20,19],21,18],21,23],22,19],22,25],23,21],23,24],24,23],24,25],25,22],25,24],25,26],26,25]],"credits_required":true,"default_rep_delay":250,"description":"27 qubit device","discriminators":["linear_discriminator","hw_qmfk","quadratic_discriminator"],"dt":0.2222222222222222,"dtm":0.2222222222222222,"dynamic_reprate_enabled":true,"gates":[{"coupling_map":0],1],2],3],4],5],6],7],8],9],10],11],12],13],14],15],16],17],18],19],20],21],22],23],24],25],26]],"name":"id","parameters":],"qasm_def":"gate id q { U(0, 0, 0) q; }"},{"coupling_map":0],1],2],3],4],5],6],7],8],
,0.02185887098312378,0.00007097758498275653],0.02172885276377201,0.00007055541209410876],0.021593358367681503,0.0000701154422131367],0.02145248092710972,0.00006965800275793299],0.021306317299604416,0.00006918339931871742],0.021154973655939102,0.00006869197386549786],0.020998552441596985,0.00006818406109232455],0.02083716168999672,0.000067660010245163],0.02067091502249241,0.0000671201923978515],0.020499924197793007,0.00006656497134827077],0.020324304699897766,0.00006599472544621676],0.020144179463386536,0.00006540984031744301],0.019959667697548866,0.00006481071613961831],0.019770894199609756,0.00006419775309041142],0.019577983766794205,0.00006357135862344876
","parameters":{"amp":0.20277725901476726,0],"beta":-0.20284589176392565,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0}]},{"name":"x","qubits":23],"sequence":{"ch":"d23","label":"Xp_d23","name":"parametric_pulse","parameters":{"amp":0.20081189348627887,0],"beta":-0.6571986204636987,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0}]},{"name":"x","qubits":24],"sequence":{"ch":"d24","label":"Xp_d24","name":"parametric_pulse","parameters":{"amp":0.20001343493861812,0],"beta":-1.2349202191509674,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0}]},{"name":"x","qubits":25],"sequence":{"ch":"d25","label":"Xp_d25","name":"parametric_pulse","parameters":{"amp":0.19808719711323416,0],
AP North (che01,seo01, sng01, tok02, tok04, tok05) 119.81.194.90, 119.81.222.210, 128.168.106.194, 128.168.71.117, 128.168.75.194, 128.168.85.154, 135.90.69.66, 135.90.69.82, 161.202.126.210, 161.202.154.10, 161.202.186.226, 161.202.56.10, 161.202.57.34, 165.192.69.69, 165.192.80.146, 165.192.83.202, 165.192.95.90, 169.38.68.178, 169.38.70.10, 169.38.79.170, 169.56.1.162, 169.56.132.234, 169.56.48.114, 169.56.69.242, 169.56.96.42 
 AP South (syd01, syd04, syd05) 130.198.64.19, 130.198.66.26, 130.198.79.170, 130.198.83.34, 130.198.102.82, 135.90.66.2, 135.90.68.114, 135.90.69.66, 135.90.69.82, 135.90.89.234, 168.1.6.106, 168.1.8.195, 168.1.12.98, 168.1.39.34, 168.1.58.66
16:20:11Z","name":"frequency","unit":"GHz","value":4.961850141795556},{"date":"2022-03-29T16:20:11Z","name":"anharmonicity","unit":"GHz","value":-0.34351495515019764},{"date":"2022-03-29T04:38:44Z","name":"readout_error","unit":"","value":0.4126000000000001},{"date":"2022-03-29T04:38:44Z","name":"prob_meas0_prep1","unit":"","value":0.43100000000000005},{"date":"2022-03-29T04:38:44Z","name":"prob_meas1_prep0","unit":"","value":0.3942},{"date":"2022-03-29T04:38:44Z","name":"readout_length","unit":"ns","value":856.8888888888888}],{"date":"2022-03-29T
,0.0010710939532145858],0.009456516243517399,0.0010761773446574807],0.009580221027135849,0.0010810865787789226],0.009699453599750996,0.0010858183959499002],0.009814130142331123,0.0010903693037107587],0.009924170561134815,0.0010947362752631307],0.010029496625065804,0.0010989162838086486],0.010130033828318119,0.0011029060697183013],0.010225710459053516,0.0011067030718550086],0.010316458530724049,0.0011103044962510467],0.010402213782072067,0.0011137076653540134],0.010482913814485073,0.0011169102508574724],0.01055850088596344,0.001119909924454987],0.01062892097979784,0.0011227045906707644],0.01069412287324667,0.0011252921540290117],
x","qubits":13],"sequence":{"ch":"d13","label":"Xp_d13","name":"parametric_pulse","parameters":{"amp":0.20222702094702164,0],"beta":-0.5140021416827205,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0}]},{"name":"x","qubits":14],"sequence":{"ch":"d14","label":"Xp_d14","name":"parametric_pulse","parameters":{"amp":0.1841536151409092,0],"beta":-1.5472137757241298,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0}]},{"name":"x","qubits":15],"sequence":{"ch":"d15","label":"Xp_d15","name":"parametric_pulse","parameters":{"amp":0.1967638065540257,0],"beta":-1.1916515615716399,"duration":160,"sigma":40},"pulse_shape":"drag","t0":0}]},{"name":"x","qubits":16],"sequence":{"
[rotate](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-rotate) Rotate a root key 
 [schedule-delete](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-schedule-delete) Authorize a key, with a dual-auth-delete policy, to be deleted 
 [show](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-show) Retrieve a key 
 [sync](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-sync) Synchronize a key's associated resources 
 [unwrap](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-unwrap) Unwrap a data encryption key 
 [update](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-update) Update a key, transferring it to a new key ring 
 [versions](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-versions) updated List all key versions
"crn": "crn:v1:bluemix:public:kms:us-south:a/ea998d3389c3473aa0987652b46fb146:390086ac-76fa-4094-8cf3-c0829bd69526:key:264fadc3-7667-4b25-916e-5825fe70de0b"
}





 Required parameters 



* KEY_ID_OR_ALIAS

The v4 UUID or alias of the key that you want to delete. To retrieve a list of your available keys, run the [kp keys](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-keys) command.
* -i, --instance-id

The IBM Cloud instance ID that identifies your Key Protect instance.

You can set an environment variable instead of specifying -i with the following command: $ export KP_INSTANCE_ID=<INSTANCE_ID>.







 Optional parameters 



* --key-ring

A unique, human readable name for the key-ring. Required if the user doesn't have permissions on the default key ring.









 kp key policies 

Retrieve details about a key policy, such as the key's automatic rotation interval.

ibmcloud kp key policies KEY_ID_OR_ALIAS
-i, --instance-id INSTANCE_ID
[--key-ring KEY_RING_ID]
[-d, --dual-auth]
[-o, --output OUTPUT]
[-r, --rotation]



 Example 

This example lists the policies for a root key.
Referencing specific keys in a configmap --env-from-configmap NAME:KEY_A,KEY_B where KEY_A,KEY_B are the keys of a key-value pair. If you want to use a different name for a referenced key, use the format NAME:MY_KEY_A=KEY_A,MY_KEY_B=KEY_B. [job create](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-job-create), [job update](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-job-update), [jobrun submit](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-jobrun-submit), [jobrun resubmit](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-jobrun-resubmit) [app create](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-application-create), [app update](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-application-update) 
 Removing a fully referenced secret --env-from-secret-rm NAME where NAME is the name of the secret. [job update](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-job-update) [app update](https://cloud.ibm.com/docs/codeengine?topic=codeengine-clicli-application-update) 
 Removing a fully referenced configmap --env-from-configmap-rm NAME where NAME is the name of the configmap.
[policies](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-policies) Retrieve a list of policies 
 policy-update [dual-auth-delete](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-policy-update-dual) Update the key policy for "dual auth delete" 
 policy-update [rotation](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-policy-update-rotation) Update the key policy for "rotation" 
 [purge](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-purge) Purge a deleted key 
 [restore](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-restore) Restore a root key that was previously deleted 
 [rotate](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-rotate) Rotate a root key 
 [schedule-delete](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-schedule-delete) Authorize a key, with a dual-auth-delete policy, to be deleted 
 [show](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-show) Retrieve a key 
 [sync](https://cloud.ibm.com/docs/cli?topic=cli-key-protect-cli-referencekp-key-sync) Synchronize a key's associated resources
"crn": "crn:v1:bluemix:public:kms:us-south:a/ea998d3389c3473aa0987652b46fb146:a192d603-0b8d-452f-aac3-f9e1f95e7411:policy:2427dbde-6cff-41eb-8b5a-ff26b038cafc",
"lastUpdateDate": "2020-06-22T21:36:16Z",
"updatedBy": "user id ...<redacted>...",
"dualAuthDelete": { "enabled": true
}
}
]





 Required parameters 



* KEY_ID_OR_ALIAS

The v4 UUID or alias of the key that you want to delete. To retrieve a list of your available keys, run the [kp keys](https://cloud.ibm.com/docs/key-protect-cli-pluginkp-keys) command.







 Optional parameters 



* --key-ring

A unique, human readable name for the key-ring. Required if the user doesn't have permissions on the default key ring.









 kp key show 

Retrieve details about a key, such as the key metadata and key material.

If the key was designated as a root key, the system cannot return the key material for that key.

ibmcloud kp key show KEY_ID_OR_ALIAS
-i, --instance-id INSTANCE_ID
[--key-ring KEY_RING_ID]
[-o, --output OUTPUT]



 Examples 

These are examples of kp key show.



 Example 1 

Create a root key and show the details.

 create a root key
$ ibmcloud kp key create my-root-key

Creating key: 'my-root-key', in instance: '390086ac-76fa-4094-8cf3-c0829bd69526'...
For more information, see the [Terraform documentation](https://www.terraform.io/docs/language/index.html).

The following code shows a sample configuration file to manage a service key.

resource "logdna_key" "service-key" {
type = "service"
name = "tf-my-service-key"

lifecycle {
create_before_destroy = true
}
}

The lifecycle object is required when you rotate a key.





 Step 5. Manage a service key 



 Create a service key 

Complete the following steps to create a key:



1. Initialize the Terraform CLI.

./terraform init
2. Create a Terraform execution plan.

./terraform plan
3. Create the resources.

./terraform apply







 Rotate a service key 

Complete the following steps to rotate a key from the directory where you have the terraform script that you use to create a key:



1. Initialize the Terraform CLI.

./terraform init
2. Rotate the key.

.terraform apply -replace="logdna_key.service-key"







 Delete a service key 

Complete the following steps to delete a key from the directory where you have the terraform script that you use to create the key:



1. Initialize the Terraform CLI.

./terraform init
2. Create a Terraform execution plan.

./terraform plan
3. Create the resources.

./terraform destroy









 Troubleshooting 



 Failed to query available provider packages 

If you get the following error:

Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider logdna/logdna: locked provider
│ registry.terraform.io/logdna/logdna 1.7.0 does not match configured version constraint 1.10.5;
│ must use terraform init -upgrade to allow selection of new versions

Run the following command:

terraform init -upgrade
* [Scenario C. Override key references with new keys](https://cloud.ibm.com/docs/codeengine?topic=codeengine-secretcm-referencesecretcm-reference-overkey-withkey-cli)



* [Removing fully referenced secrets or configmaps with the CLI](https://cloud.ibm.com/docs/codeengine?topic=codeengine-secretcm-referencesecretcm-reference-fullremove-cli)
* [Removing key references with the CLI](https://cloud.ibm.com/docs/codeengine?topic=codeengine-secretcm-referencesecretcm-reference-keyremove-cli)



[Referencing secrets and configmaps as mounted files (CLI)](https://cloud.ibm.com/docs/codeengine?topic=codeengine-secretcm-reference-mountedfilessecretcm-reference-mountedfiles)



* [Referencing a secret as a mounted file with the CLI](https://cloud.ibm.com/docs/codeengine?topic=codeengine-secretcm-reference-mountedfilessecret-reference-mount-file-cli)







 Logging and monitoring 

[Viewing logs](https://cloud.ibm.com/docs/codeengine?topic=codeengine-view-logsview-logs)



* [Viewing logs from the console](https://cloud.ibm.com/docs/codeengine?topic=codeengine-view-logsview-logs-ui)



* [Considerations for viewing logs from the console](https://cloud.ibm.com/docs/codeengine?topic=codeengine-view-logsview-logs-considerations)
* [Viewing app logs from the console](https://cloud.ibm.com/docs/codeengine?topic=codeengine-view-logsview-applogs-ui)
This section provides detailed steps to extract the public key for bob and add that to alice's keystore and extract the public key for alice and add that to bob's keystore.



1. Extract the public key for bob and add that to alice's keystore

On Mac:
- runmqakm -cert -extract -db /bob/.mqs/bobkey.kdb -pw passw0rd -label Bob_Cert -target bob_public.arm
- runmqakm -cert -add -db /alice/.mqs/alicekey.kdb -pw passw0rd -label Bob_Cert -file bob_public.arm

On Linux:
- runmqakm -cert -extract -db /home/bob/.mqs/bobkey.kdb -pw passw0rd -label Bob_Cert -target bob_public.arm
- runmqakm -cert -add -db /home/alice/.mqs/alicekey.kdb -pw passw0rd -label Bob_Cert -file bob_public.arm

On Windows:
- runmqakm -cert -extract -db %HOMEDRIVE%Usersbob.mqsbobkey.kdb -pw passw0rd -label Bob_Cert -target bob_public.arm
- runmqakm -cert -add -db %HOMEDRIVE%Usersalice.mqsalicekey.kdb -pw passw0rd -label Bob_Cert -file bob_public.arm
Show more
2. Extract the public key for alice and add that to bob's keystore

On Mac:
- runmqakm -cert -extract -db /alice/.mqs/alicekey.kdb -pw passw0rd -label Alice_Cert -target alice_public.arm
- runmqakm -cert -add -db /bob/.mqs/bobkey.kdb -pw passw0rd -label Alice_Cert -file alice_public.arm

On Linux:
Retrieving keys...
OK
Key ID Key Name
ef2cc155-fe56-492c-845c-4d1f0688c7ba my-last-key
2f1cb135-fa16-40dc-815c-4d1f0ee8c7ba my-first-key







 Required parameters 



* -i, --instance-id

The IBM Cloud instance ID that identifies your Key Protect instance.

You can set an environment variable instead of specifying -i with the following command: $ export KP_INSTANCE_ID=<INSTANCE_ID>.







 Optional parameters 



* -b, --sort-by

Sort the keys based on the parameters. The default property for sorting results is "id." '-' before the parameter indicates sort by descending order. The supported sort parameters at this time are



* id
* state
* extractable
* imported
* creationDate
* lastUpdateDate
* lastRotateDate
* deletionDate
* expirationDate



* -c, --crn

Include the cloud resource name (CRN) in the output.
* -f, --key-filter

Filter the keys based on the parameters. The supported key filtering parameters are



* creationDate
* deletionDate
* expirationDate
* extractable
* lastUpdateDate
* lastRotateDate
* state



The supporting operators for dates are:



* gt (greater than)
* gte (greater than or equal to)
* lt (less than)
* lte (less than or equal to)



The results will be an exact match in case any of these operators are missing.
* --key-states

The state of the keys to be retrieved. List of strings containing valid states - Active, Suspended, Deactivated, Destroyed. (default: active,suspended,deactivated).
* -l, --key-search
[policies](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-policies) Retrieve a list of policies 
 policy-update [dual-auth-delete](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-policy-update-dual) Update the key policy for "dual auth delete" 
 policy-update [rotation](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-policy-update-rotation) Update the key policy for "rotation" 
 [purge](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-purge) Purge a deleted key 
 [restore](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-restore) Restore a root key that was previously deleted 
 [rotate](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-rotate) Rotate a root key 
 [schedule-delete](https://cloud.ibm.com/docs/key-protect-cli-plugin?topic=key-protect-cli-plugin-key-protect-cli-referencekp-key-schedule-delete) Authorize a key, with a dual-auth-delete policy, to be deleted