Skip to content

/AWS1/IF_IOT=>DESCRIBECERTIFICATE()

About DescribeCertificate

Gets information about the specified certificate.

Requires permission to access the DescribeCertificate action.

Method Signature

IMPORTING

Required arguments:

iv_certificateid TYPE /AWS1/IOTCERTIFICATEID /AWS1/IOTCERTIFICATEID

The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

RETURNING

oo_output TYPE REF TO /aws1/cl_iotdescrcertresponse /AWS1/CL_IOTDESCRCERTRESPONSE

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->/aws1/if_iot~describecertificate( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_certificatedescription = lo_result->get_certificatedescription( ).
  IF lo_certificatedescription IS NOT INITIAL.
    lv_certificatearn = lo_certificatedescription->get_certificatearn( ).
    lv_certificateid = lo_certificatedescription->get_certificateid( ).
    lv_certificateid = lo_certificatedescription->get_cacertificateid( ).
    lv_certificatestatus = lo_certificatedescription->get_status( ).
    lv_certificatepem = lo_certificatedescription->get_certificatepem( ).
    lv_awsaccountid = lo_certificatedescription->get_ownedby( ).
    lv_awsaccountid = lo_certificatedescription->get_previousownedby( ).
    lv_datetype = lo_certificatedescription->get_creationdate( ).
    lv_datetype = lo_certificatedescription->get_lastmodifieddate( ).
    lv_customerversion = lo_certificatedescription->get_customerversion( ).
    lo_transferdata = lo_certificatedescription->get_transferdata( ).
    IF lo_transferdata IS NOT INITIAL.
      lv_message = lo_transferdata->get_transfermessage( ).
      lv_message = lo_transferdata->get_rejectreason( ).
      lv_datetype = lo_transferdata->get_transferdate( ).
      lv_datetype = lo_transferdata->get_acceptdate( ).
      lv_datetype = lo_transferdata->get_rejectdate( ).
    ENDIF.
    lv_generationid = lo_certificatedescription->get_generationid( ).
    lo_certificatevalidity = lo_certificatedescription->get_validity( ).
    IF lo_certificatevalidity IS NOT INITIAL.
      lv_datetype = lo_certificatevalidity->get_notbefore( ).
      lv_datetype = lo_certificatevalidity->get_notafter( ).
    ENDIF.
    lv_certificatemode = lo_certificatedescription->get_certificatemode( ).
  ENDIF.
ENDIF.