otcextensions.sdk.anti_ddos.v1.status

The Anti DDoS TaskStatus Class

The TaskStatus class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.status.TaskStatus(_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.

base_path: str = '/query_task_status'

The base part of the URI for this resource.

allow_fetch = True

Allow get operation for this resource.

task_status

Status of task validate status are success, failed, waiting, running

task_msg

Additional task status message

The Anti DDoS FloatingIPStatus Class

The FloatingIPStatus class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.status.FloatingIPStatus(_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.

base_path: str = '/antiddos/%(floating_ip_id)s/status'

The base part of the URI for this resource.

allow_fetch = True

Allow get operation for this resource.

status

Status of Anti-DDos validate status are normal, configging, notConfig, packetcleaning, packetdropping

The Anti DDoS FloatingIPEvent Class

The FloatingIPEvent class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.status.FloatingIPEvent(_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] = 'logs'

Plural form of key for resource.

base_path: str = '/antiddos/%(floating_ip_id)s/logs'

The base part of the URI for this resource.

allow_list = True

Allow list operation for this resource.

start_time

start time Type: int

end_time

end time Type: int

status

Anti-ddos status Defense status, the possible value of which is one of the following: * 1: indicates that traffic cleaning is underway. * 2: indicates that traffic is discarded. Type: int

trigger_bps

Trigger bps (bit/s) Type: int

trigger_pps

Trigger package per second Type: int

trigger_http_pps

Trigger http requests Type: int

The Anti DDoS FloatingIPDayStat Class

The FloatingIPDayStat class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.status.FloatingIPDayStat(_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] = 'data'

Plural form of key for resource.

base_path: str = '/antiddos/%(floating_ip_id)s/daily'

The base part of the URI for this resource.

allow_list = True

Allow list operation for this resource.

period_start

Data start time Type: int

bps_in

In (bit/s) Type: int

bps_attack

Attack (bit/s) Type: int

total_bps

Total data (bit/s) Type: int

pps_in

Package in speed (/s) Type: int

pps_attack

Package attack speed (/s) Type: int

total_pps

Total package speed (/s) Type: int

The Anti DDoS FloatingIPWeekStatData Class

The FloatingIPWeekStatData class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.status.FloatingIPWeekStatData(_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.

ddos_intercept_times

Intercept time in one week Type: int

ddos_blackhole_times

Type: int

max_attack_bps

Type: int

max_attack_conns

Type: int

period_start_date

Data start time Type: int

The Anti DDoS FloatingIPWeekStat Class

The FloatingIPWeekStat class inherits from Resource.

class otcextensions.sdk.anti_ddos.v1.status.FloatingIPWeekStat(_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.

base_path: str = '/antiddos/weekly'

The base part of the URI for this resource.

allow_fetch = True

Allow get operation for this resource.

ddos_intercept_times

Intercept time in one week Type: int

weekdata

A list of data in one week Type: list

top10

Top 10 ip address in one week Type: list