'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Networking service object from the client. $networkingService = $client->networkingService(null, '{region}'); // 3. Create multiple subnets. $subnets = $networkingService->createSubnets(array( array( 'name' => 'My subnet #1', 'networkId' => '{networkId1}', 'ipVersion' => 4, 'cidr' => '192.168.199.0/24' ), array( 'name' => 'My subnet #2', 'networkId' => '{networkId2}', 'ipVersion' => 4, 'cidr' => '10.56.4.0/22' ) )); foreach ($subnets as $subnet) { /** @var $subnet OpenCloud\Networking\Resource\Subnet **/ }