Top
Cloud Services Management V1.0.0 Operation Guide
FUJITSU Software

5.2.4 Menu Operation Commands

Command Name

fscsm_menu

Format
fscsm_menu create -file input-file
fscsm_menu modify -file input-file
fscsm_menu delete -menuId MenuID
fscsm_menu export [-menuId MenuID | -contractId ContractID] -file output-file
fscsm_menu list [-contractId ContractID]
Description

Performs registration, modification, deletion, and outputting of menu information.

Subcommands
create -file input-file

Registers menu information.

In input-file, enter the name of the file containing the menu information to be registered. For details on the format of the file, refer to "5.3.4 Menu Information".

modify -file input-file

Updates menu information. Only information for a single menu can be modified at one time.

In input-file, enter the name of the file containing the menu information to be modified. For details on the format of the file, refer to "5.3.4 Menu Information".

delete -menuId MenuID

Deletes menu information.

In MenuID, specify the menu ID to be deleted.

export [-menuId MenuID | -contractId ContractID] -file output-file

Outputs menu information as an XML file.

Both MenuID and ContractID can be omitted. However, it is possible to narrow down the target menu information by specifying one of them.

In MenuID, specify the menu ID. In ContractID, specify the contract ID.

In output-file, specify the file name using a character string containing alphanumeric characters, hyphens, underscores, and periods. For details on the format of the file, refer to "5.3.4 Menu Information".

When the specified file already exists, an error occurs.

list [-contractId ContractID]

Displays the registered menu information in the prompt window.

ContractID can be omitted. If specified, only the menu information linked to the specified contract will be output. If not specified, all menu information will be output.

The following items are displayed in the ascending order of menu IDs.

  • Menu ID

  • Menu name

  • Contract ID

  • Status


Example
  • When registering menu information

    >fscsm_menu create -file addmenu.xml<RETURN>
  • When modifying menu information

    >fscsm_menu modify -file updmenu.xml<RETURN>
  • When deleting the menu information whose menu ID is ror-2015-001

    >fscsm_menu delete -menuId ror-2015-001<RETURN>
  • When outputting the menu information whose menu ID is ror-2015-001 as a file

    >fscsm_menu export -menuId ror-2015-001 -file menudata_ROR2015001.xml<RETURN>
  • When outputting the menu information whose contract ID is 515 as a file

    >fscsm_menu export -contractId 515 -file menudata_ROR.xml<RETURN>
  • When outputting the menu information whose contract ID is 515 to the screen

    >fscsm_menu list -contractId 515<RETURN>
    menuId              menuName            contractId          status
    ----------------------------------------------------------------------------------------------
    ror-2015-001        GOLD                       515          published
    ror-2015-002        SILVER                     515          hidden
  • When outputting the menu information to the screen

    >fscsm_menu list<RETURN>
    menuId              menuName            contractId         status
    ----------------------------------------------------------------------------------------------
    aws-2015-001        COPPER                   521         published
    ror-2015-001        GOLD                     515         published
    ror-2015-002        GOLD                     515         hidden