/AWS1/IF_BRK=>SEARCHJOBS()¶
About SearchJobs¶
Searches for Amazon Braket hybrid jobs that match the specified filter values.
Method Signature¶
METHODS /AWS1/IF_BRK~SEARCHJOBS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/BRKSTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BRKINTEGER OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_BRKSEARCHJOBSFILTER=>TT_SEARCHJOBSFILTERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_brksearchjobsresponse
RAISING
/AWS1/CX_BRKACCESSDENIEDEX
/AWS1/CX_BRKINTERNALSERVICEEX
/AWS1/CX_BRKTHROTTLINGEX
/AWS1/CX_BRKVALIDATIONEX
/AWS1/CX_BRKCLIENTEXC
/AWS1/CX_BRKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_filters TYPE /AWS1/CL_BRKSEARCHJOBSFILTER=>TT_SEARCHJOBSFILTERLIST TT_SEARCHJOBSFILTERLIST¶
Array of SearchJobsFilter objects to use when searching for hybrid jobs.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/BRKSTRING /AWS1/BRKSTRING¶
A token used for pagination of results returned in the response. Use the token returned from the previous request to continue search where the previous request ended.
iv_maxresults TYPE /AWS1/BRKINTEGER /AWS1/BRKINTEGER¶
The maximum number of results to return in the response.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_brksearchjobsresponse /AWS1/CL_BRKSEARCHJOBSRESPONSE¶
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->searchjobs(
it_filters = VALUE /aws1/cl_brksearchjobsfilter=>tt_searchjobsfilterlist(
(
new /aws1/cl_brksearchjobsfilter(
it_values = VALUE /aws1/cl_brkstring256list_w=>tt_string256list(
( new /aws1/cl_brkstring256list_w( |string| ) )
)
iv_name = |string|
iv_operator = |string|
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_jobs( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_jobprimarystatus = lo_row_1->get_status( ).
lv_jobarn = lo_row_1->get_jobarn( ).
lv_string = lo_row_1->get_jobname( ).
lv_string256 = lo_row_1->get_device( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_startedat( ).
lv_timestamp = lo_row_1->get_endedat( ).
LOOP AT lo_row_1->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.