setAccessKey("ak"); $client->setSecretKey("sk"); $query = [ 'ServiceId' => 'service id', ]; $body = [ 'domain' => 'domain', 'ip_auth' => [ 'enabled' => true, 'is_white_mode' => false, 'values' => ['10.20.0.0/16'], ] ]; $response = $client->updateImageDomainIPAuth($query, $body); print_r($response);