otcextensions.sdk.anti_ddos.v1.floating_ip

The Anti_DDoS FloatingIP Class

The FloatingIP class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.floating_ip.FloatingIP(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resources_key: ty.Optional[str] = 'ddosStatus'

Plural form of key for resource.

base_path: str = '/antiddos'

The base part of the URI for this resource.

allow_list = True

Allow list operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_commit = True

Allow update operation for this resource.

floating_ip_address

Floating ipaddress

is_enable_l7

Flag to indicate whether L7 protection is enabled Type: bool

traffic_pos_id

Traffic segment id Valid values are from 1 to 9 Type: int

http_request_pos_id

Http request segment id Valid values are from 1 to 15 Type: int

cleaning_access_pos_id

Cleaning access limit id Valid values are from 1 to 8 Type: int

app_type_id

Application type id Valid values are from 0, 1 Type: int

network_type

Network type: EIP or ELB

status

Status of the EIP Possible values: * normal: indicates that the defense status is normal. * configging: indicates that defense is being configured. * notConfig: indicates that defense is not configured. * packetcleaning: indicates that traffic cleaning is underway. * packetdropping: indicates that traffic is discarded. Type: str

task_id

Task id

update([E, ]**F) None.  Update D from dict/iterable E and F.

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]