Top
Cloud Services Management V1.1.0 Operation Guide
FUJITSU Software

5.2.3 Contract Operation Commands

Command Name

fscsm_contract

Format
fscsm_contract create -file input-file
fscsm_contract modify -file input-file
fscsm_contract delete -contractId contractID
fscsm_contract export [-contractId contractID] -file output-file
fscsm_contract list
Description

Performs addition, modification, deletion, and output of contracts.

Subcommands
create -file input-file

Adds a contract.

In input-file, enter the name of the file containing the contract to be added. For details on the format of the file, refer to "5.3.3 Contracts".

modify -file input-file

Modifies a contract. Only a single contract can be modified at one time.

In input-file, enter the name of the file containing the contract to be modified. For details on the format of the file, refer to "5.3.3 Contracts".

delete -contractId contractID

Deletes a contract.

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

export [-contractId contractID] -file output-file

Outputs contracts as an XML file.

contractID can be omitted. If specified, only the information of the specified contract will be output. If not specified, the information of all contracts will be output.

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.3 Contracts".

When the specified file already exists, an error occurs.

list

Displays all of the added contracts in a prompt window.

The following items are displayed in ascending order of contract ID.

  • Contract ID

  • Contract Name

  • Vendor ID


Example
  • When adding a contract

    >fscsm_contract create -file addcontract.xml<RETURN>
  • When modifying a contract

    >fscsm_contract modify -file updcontract.xml<RETURN>
  • When deleting the contract with contract ID 515

    >fscsm_contract delete -contractId 515<RETURN>
  • When outputting the contract with contract ID 515 as a file

    >fscsm_contract export -contractId 515 -file contdata_ROR.xml<RETURN>
  • When outputting contracts to the screen

    >fscsm_contract list<RETURN>
    contractId      contractName             vendorId
    -------------------------------------------------
    515             ror - contract of 2015   ror
    521             aws - contract of 2015   aws