Top
Cloud Services Management V1.0.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 registration, modification, deletion, and outputting of contract.

Subcommands
create -file input-file

Registers contract.

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

modify -file input-file

Updates contract. Only information for 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 Contract Information".

delete -contractId ContractID

Deletes contract.

In ContractID, specify the contract ID to be deleted.

export [-contractId ContractID] -file output-file

Outputs contract as an XML file.

ContractID can be omitted. If specified, only the information for the specified contract will be output. If not specified, the information for 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 Contract Information".

When the specified file already exists, an error occurs.

list

Displays all of the registered contract in the prompt window.

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

  • Contract ID

  • Contract name

  • Vendor ID


Example
  • When registering contract

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

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

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

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

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