Top
Cloud Services Management V1.1.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 addition, modification, deletion, and output of menu information.

Subcommands
create -file input-file

Adds menu information.

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

modify -file input-file

Modifies menu information. Only the information of a single menu can be modified at one time.

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

Note

Before deleting an operation option or a configuration option, ensure that there are no platforms or services which are currently under request for addition or modification and which use the target option.

If an option which is in use is deleted, the billing of the affected platforms or services will not be calculated correctly.

delete -menuId menuID

Deletes menu information.

In menuID, specify the ID of the menu to be deleted. If the specified menu is linked to a platform, an error occurs during deletion.

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 added menu information in a 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 ascending order of menu ID.

  • Menu ID

  • Menu Name

  • Contract ID

  • Status


Example
  • When adding 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 with menu ID ror-2015-001

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

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

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

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

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