public function createArchive($uuidSafe, $name, $description, $parity = null, $protocols = array(), $sshKeys = array(), $days = null, $platforms = array())
    {
        if (!in_array($parity, array(self::PARITY_STD, self::PARITY_ENT))) {
            $parity = self::PARITY_STD;
        }

        $days = intval($days);
        if (!in_array($days, array(2, 5, 7))) {
            $days = 7;
        }

        $parameters = array(
          'name' => $name,
          'description' => $description,
          'parity' => $parity,
          'protocols' => $protocols,
          'ssh_keys' => $sshKeys,
          'days' => $days,
          'platforms' => $platforms,
        );

        return $this->online->call('/storage/c14/safe/'.$uuidSafe.'/archive', 'POST', $parameters);
    }
public function createArchive($uuidSafe, $name, $description, $parity = null, $protocols = array(), $sshKeys = array(), $days = null, $platforms = array())
    {
        if (!in_array($parity, array(self::PARITY_STD, self::PARITY_ENT))) {
            $parity = self::PARITY_STD;
        }

        $days = intval($days);
        if (!in_array($days, array(2, 5, 7))) {
            $days = 7;
        }

        $parameters = array(
          'name' => $name,
          'description' => $description,
          'parity' => $parity,
          'protocols' => $protocols,
          'ssh_keys' => $sshKeys,
          'days' => $days,
          'platforms' => $platforms,
        );

        return $this->online->call('/storage/c14/safe/'.$uuidSafe.'/archive', 'POST', $parameters);
    }
public function createArchive ( $ uuidSafe , $ name , $ description , $ parity = null , $ protocols = array ( ) , $ sshKeys = array ( ) , $ days = null , $ platforms = array ( ) ) { if ( ! in_array ( $ parity , array ( self :: PARITY_STD , self :: PARITY_ENT ) ) ) { $ parity = self :: PARITY_STD ; } $ days = intval ( $ days ) ; if ( ! in_array ( $ days , array ( 2 , 5 , 7 ) ) ) { $ days = 7 ; } $ parameters = array ( 'name' => $ name , 'description' => $ description , 'parity' => $ parity , 'protocols' => $ protocols , 'ssh_keys' => $ sshKeys , 'days' => $ days , 'platforms' => $ platforms , ) ; return $ this -> online -> call ( '/storage/c14/safe/' . $ uuidSafe . '/archive' , 'POST' , $ parameters ) ; }
Creates an archive in the safe, returns its id with an HTTP code 201.

@param string $uuidSafe
@param string $name
@param string $description
@param string $parity
@param array $protocols
@param array $sshKeys
@param int $days
@param array $platforms

@return string
Creates an archive in the safe returns its id with an HTTP code 201 .