Documentation

SecurityGroupRuleRepository
in package

Table of Contents

create()  : SecurityGroupRule
This function will create a new SecurityGroupRule
retrieveOrCreate()  : SecurityGroupRule
This function will retrieve che SecurityGroupRule with the given parameters, or create a new one if it does not exist

Methods

create()

This function will create a new SecurityGroupRule

public static create(int $securityGroupId, string $direction, string $protocol, string $ethertype, int $portRangeMin, int $portRangeMax) : SecurityGroupRule
Parameters
$securityGroupId : int
$direction : string
$protocol : string
$ethertype : string
$portRangeMin : int
$portRangeMax : int
Tags
throws
GenericLogicalException
Return values
SecurityGroupRule

retrieveOrCreate()

This function will retrieve che SecurityGroupRule with the given parameters, or create a new one if it does not exist

public static retrieveOrCreate(int $securityGroupId, string $direction, string $protocol, string $ethertype, int $portRangeMin, int $portRangeMax) : SecurityGroupRule
Parameters
$securityGroupId : int
$direction : string
$protocol : string
$ethertype : string
$portRangeMin : int
$portRangeMax : int
Tags
throws
GenericLogicalException
Return values
SecurityGroupRule

Search results