/AWS1/IF_HPP=>UPDATECLUSTER()
¶
About UpdateCluster¶
Updates a cluster configuration. You can modify Slurm scheduler settings, accounting configuration, and security groups for an existing cluster.
You can only update clusters that are in ACTIVE
, UPDATE_FAILED
, or SUSPENDED
state. All associated resources (queues and compute node groups) must be in ACTIVE
state before you can update the cluster.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_clusteridentifier
TYPE /AWS1/HPPCLUSTERIDENTIFIER
/AWS1/HPPCLUSTERIDENTIFIER
¶
The name or ID of the cluster to update.
Optional arguments:¶
iv_clienttoken
TYPE /AWS1/HPPSBCLIENTTOKEN
/AWS1/HPPSBCLIENTTOKEN
¶
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
io_slurmconfiguration
TYPE REF TO /AWS1/CL_HPPUPCLSTSLURMCONFREQ
/AWS1/CL_HPPUPCLSTSLURMCONFREQ
¶
Additional options related to the Slurm scheduler.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_hppupdateclusterrsp
/AWS1/CL_HPPUPDATECLUSTERRSP
¶
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->updatecluster(
io_slurmconfiguration = new /aws1/cl_hppupclstslurmconfreq(
io_accounting = new /aws1/cl_hppupdateacctingreq(
iv_defaultpurgetimeindays = 123
iv_mode = |string|
)
it_slurmcustomsettings = VALUE /aws1/cl_hppslurmcustomsetting=>tt_slurmcustomsettings(
(
new /aws1/cl_hppslurmcustomsetting(
iv_parametername = |string|
iv_parametervalue = |string|
)
)
)
iv_scaledownidletimeinsecs = 123
)
iv_clienttoken = |string|
iv_clusteridentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_cluster = lo_result->get_cluster( ).
IF lo_cluster IS NOT INITIAL.
lv_string = lo_cluster->get_name( ).
lv_string = lo_cluster->get_id( ).
lv_string = lo_cluster->get_arn( ).
lv_clusterstatus = lo_cluster->get_status( ).
lv_timestamp = lo_cluster->get_createdat( ).
lv_timestamp = lo_cluster->get_modifiedat( ).
lo_scheduler = lo_cluster->get_scheduler( ).
IF lo_scheduler IS NOT INITIAL.
lv_schedulertype = lo_scheduler->get_type( ).
lv_string = lo_scheduler->get_version( ).
ENDIF.
lv_size = lo_cluster->get_size( ).
lo_clusterslurmconfigurati = lo_cluster->get_slurmconfiguration( ).
IF lo_clusterslurmconfigurati IS NOT INITIAL.
lv_integer = lo_clusterslurmconfigurati->get_scaledownidletimeinsecs( ).
LOOP AT lo_clusterslurmconfigurati->get_slurmcustomsettings( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_parametername( ).
lv_string = lo_row_1->get_parametervalue( ).
ENDIF.
ENDLOOP.
lo_slurmauthkey = lo_clusterslurmconfigurati->get_authkey( ).
IF lo_slurmauthkey IS NOT INITIAL.
lv_string = lo_slurmauthkey->get_secretarn( ).
lv_string = lo_slurmauthkey->get_secretversion( ).
ENDIF.
lo_accounting = lo_clusterslurmconfigurati->get_accounting( ).
IF lo_accounting IS NOT INITIAL.
lv_integer = lo_accounting->get_defaultpurgetimeindays( ).
lv_accountingmode = lo_accounting->get_mode( ).
ENDIF.
ENDIF.
lo_networking = lo_cluster->get_networking( ).
IF lo_networking IS NOT INITIAL.
LOOP AT lo_networking->get_subnetids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_subnetid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_networking->get_securitygroupids( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_securitygroupid = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_networktype = lo_networking->get_networktype( ).
ENDIF.
LOOP AT lo_cluster->get_endpoints( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_endpointtype = lo_row_7->get_type( ).
lv_string = lo_row_7->get_privateipaddress( ).
lv_string = lo_row_7->get_publicipaddress( ).
lv_string = lo_row_7->get_ipv6address( ).
lv_string = lo_row_7->get_port( ).
ENDIF.
ENDLOOP.
LOOP AT lo_cluster->get_errorinfo( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_string = lo_row_9->get_code( ).
lv_string = lo_row_9->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.