class SecurityGroupRule extends OperatorResource implements Creatable, Listable, Deletable, Retrievable

Represents a SecurityGroupRule resource in the Network v2 service

Traits

Properties

$direction string
$ethertype string
$id string
$portRangeMax integer
$portRangeMin integer
$protocol string
$remoteGroupId string
$remoteIpPrefix string
$securityGroupId string
$tenantId string

Methods

create (array $userOptions) : Creatable

Create a new resource according to the configuration set in the options.

delete () : void

Permanently delete this resource.

retrieve () : void

Retrieve details of the current resource from the remote API.

Details

create(array $userOptions)

Create a new resource according to the configuration set in the options.

Parameters

$userOptions array

Return value

Creatable

Example code

$creatable = $securityGroupRule->create($userOptions);

delete()

Permanently delete this resource.

Return value

void

Example code

$securityGroupRule->delete();

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$securityGroupRule->retrieve();