'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Networking service object from the client. $networkingService = $client->networkingService(null, '{region}'); // 3. Create a subnet. $subnet = $networkingService->createSubnet(array( 'name' => 'My subnet', 'networkId' => '{networkId}', 'ipVersion' => 4, 'cidr' => '192.168.199.0/24' )); /** @var $subnet OpenCloud\Networking\Resource\Subnet **/