/AWS1/IF_EC2=>GETINSTANCETPMEKPUB()¶
About GetInstanceTpmEkPub¶
Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.
Method Signature¶
METHODS /AWS1/IF_EC2~GETINSTANCETPMEKPUB
IMPORTING
!IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID OPTIONAL
!IV_KEYTYPE TYPE /AWS1/EC2EKPUBKEYTYPE OPTIONAL
!IV_KEYFORMAT TYPE /AWS1/EC2EKPUBKEYFORMAT OPTIONAL
!IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2getinsttpmekpubrs
RAISING
/AWS1/CX_EC2CLIENTEXC
/AWS1/CX_EC2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_instanceid TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID¶
The ID of the instance for which to get the public endorsement key.
iv_keytype TYPE /AWS1/EC2EKPUBKEYTYPE /AWS1/EC2EKPUBKEYTYPE¶
The required public endorsement key type.
iv_keyformat TYPE /AWS1/EC2EKPUBKEYFORMAT /AWS1/EC2EKPUBKEYFORMAT¶
The required public endorsement key format. Specify
derfor a DER-encoded public key that is compatible with OpenSSL. Specifytpmtfor a TPM 2.0 format that is compatible with tpm2-tools. The returned key is base64 encoded.
Optional arguments:¶
iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN¶
Specify this parameter to verify whether the request will succeed, without actually making the request. If the request will succeed, the response is
DryRunOperation. Otherwise, the response isUnauthorizedOperation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ec2getinsttpmekpubrs /AWS1/CL_EC2GETINSTTPMEKPUBRS¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getinstancetpmekpub(
iv_dryrun = ABAP_TRUE
iv_instanceid = |string|
iv_keyformat = |string|
iv_keytype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_instanceid = lo_result->get_instanceid( ).
lv_ekpubkeytype = lo_result->get_keytype( ).
lv_ekpubkeyformat = lo_result->get_keyformat( ).
lv_ekpubkeyvalue = lo_result->get_keyvalue( ).
ENDIF.