'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain a Networking service object from the client. $networkingService = $client->networkingService(null, '{region}'); // 3. Create a security group rule. $securityGroupRule = $networkingService->createSecurityGroupRule(array( 'securityGroupId' => '2076db17-a522-4506-91de-c6dd8e837028', 'direction' => 'egress', 'ethertype' => 'IPv4', 'portRangeMin' => 80, 'portRangeMax' => 80, 'protocol' => 'tcp', 'remoteGroupId' => '85cc3048-abc3-43cc-89b3-377341426ac5' )); /** @var $securityGroupRule OpenCloud\Networking\Resource\SecurityGroupRule **/