PHP Класс Scalr\Service\OpenStack\Services\Network\V2\NetworkApi

С версии: 07.05.2013
Автор: Vitaliy Demidov ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$service Scalr\Service\OpenStack\Services\NetworkService

Открытые методы

Метод Описание
__construct ( Scalr\Service\OpenStack\Services\NetworkService $network ) Constructor
addRouterInterface ( string $routerId, string $subnetId = null, string $portId = null ) : object Add Router Interface action (PUT /routers/router-id/add_router_interface)
associateLbHealthMonitorWithPool ( string $poolId, string $healthMonitorId ) : object Associate health monitor with the pool (POST /lb/pools/pool-id/health_monitors)
createFloatingIp ( string $floatingNetworkId, string $portId = null, $fixedIpAddress = null ) : object This operation creates a floating IP.
createLbHealthMonitor ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbHealthMonitor $request ) : object Creates LBaaS Health Monitor (POST /lb/health_monitors)
createLbMember ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbMember $request ) : object Creates LBaaS member (POST /lb/members)
createLbPool ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbPool $request ) : object Creates LBaaS pool (POST /lb/pools)
createLbVip ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbVip $request ) : object Creates LBaaS vip (POST /lb/vips)
createNetwork ( string $name = null, boolean $adminStateUp = null, boolean $shared = null, string $tenantId = null ) : object Create Network action (POST /networks)
createPort ( Scalr\Service\OpenStack\Services\Network\Type\CreatePort $request ) : object Create Port action (POST /ports)
createRouter ( Scalr\Service\OpenStack\Services\Network\Type\CreateRouter $request ) : object Create Router action (POST /routers)
createSecurityGroup ( string $name, string $description = null ) : object Creates Security group (POST /security-groups)
createSecurityGroupRule ( Scalr\Service\OpenStack\Services\Network\Type\CreateSecurityGroupRule $request ) : object Creates Security Group Rule (POST /security-group-rules)
createSubnet ( Scalr\Service\OpenStack\Services\Network\Type\CreateSubnet $request ) : object Creates Subnet (POST /subnets)
deleteFloatingIp ( integer $floatingIpId ) : boolean The operation removes the floating IP
deleteLbHealthMonitor ( string $healthMonitorId ) : boolean Deletes LBaaS health monitor (DELETE /lb/health_monitors/health_monitor-id)
deleteLbMember ( string $memberId ) : boolean Deletes LBaaS member (DELETE /lb/members/member-id)
deleteLbPool ( string $poolId ) : boolean Deletes LBaaS pool (DELETE /lb/pools/pool-id)
deleteLbVip ( string $vipId ) : boolean Deletes LBaaS VIP (DELETE /lb/vips/vip-id)
deleteNetwork ( string $networkId ) : boolean Delete Network action (DELETE /networks/network-id)
deletePort ( string $portId ) : boolean Delete Port action (DELETE /ports/port-id)
deleteRouter ( string $routerId ) : boolean Delete Router action (DELETE /routers/router-id)
deleteSecurityGroup ( string $id ) : boolean Deletes Security Group (DELETE /security-groups/security-group-id)
deleteSecurityGroupRule ( string $id ) : boolean Deletes Security Group Rule (DELETE /security-group-rules/​rules-security-groups-id})
deleteSubnet ( string $subnetId ) : boolean Delete Subnet action (DELETE /subnets/subnet-id)
disassociateLbHealthMonitorFromPool ( string $poolId, string $healthMonitorId ) : boolean Disassociates health monitor from a pool (DELETE /lb/pools/pool-id/health_monitors/healthmonitor-id)
escape ( string $string ) : string Escapes string
getClient ( ) : Scalr\Service\OpenStack\Client\ClientInterface Gets HTTP Client
getFloatingIp ( integer $floatingIpId ) : object Gets floating Ip details
listExtensions ( ) : array List Extensions action
listFloatingIps ( ) : Scalr\Service\OpenStack\Type\DefaultPaginationList List Floating Ips action
listLbHealthMonitors ( string $healthMonitorId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbHealthMonitorsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object List LBaaS Health Monitors action (GET /lb/health_monitors[/health-monitors-id])
listLbMembers ( string $memberId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbMembersFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object List Members action (GET /lb/members[/member-id])
listLbPools ( string $poolId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbPoolsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object List Pools action (GET /lb/pools[/pool-id])
listLbVips ( string $vipId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbVipsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object List VIPs action (GET /lb/vips[/vip-id])
listNetworks ( string $networkId = null, Scalr\Service\OpenStack\Services\Network\Type\ListNetworksFilter $filter = null ) : array | object List Networks action (GET /networks[/network-id])
listPorts ( string $portId = null, Scalr\Service\OpenStack\Services\Network\Type\ListPortsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object ListPorts action (GET /ports[/port-id])
listRouters ( string $routerId = null, Scalr\Service\OpenStack\Services\Network\Type\ListRoutersFilter $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object Gets the routers list
listSecurityGroupRules ( string $id = null, Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupRulesFilter $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object Gets the list of the security group rules (GET /security-group-rules/[rules-security-groups-id] )
listSecurityGroups ( string $id = null, Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupsFilter $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object Gets the list of the security groups
listSubnets ( string $subnetId = null, Scalr\Service\OpenStack\Services\Network\Type\ListSubnetsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object ListSubnets action (GET /subnets[/subnet-id])
removeRouterInterface ( string $routerId, string $subnetId = null, string $portId = null ) : object Remove Router Interface action (PUT /routers/router-id/remove_router_interface)
updateFloatingIp ( string $floatingIpId, string $portId = null ) : object This operation updates a floating IP.
updateLbHealthMonitor ( string $healthMonitorId, array | object $options ) : object Update LBaaS health monitor (PUT /lb/health_monitors/health_monitors-id)
updateLbMember ( string $memberId, array | object $options ) : object Update LBaaS member (PUT /lb/members/member-id)
updateLbPool ( string $poolId, array | object $options ) : object Update LBaaS pool (PUT /lb/pools/pool-id)
updateLbVip ( string $vipId, array | object $options ) : object Update LBaaS VIP (PUT /lb/vips/vip-id)
updateNetwork ( string $networkId, string $name = null, boolean $adminStateUp = null ) : object Update Network action (PUT /networks/network-id)
updatePort ( string $portId, array | object $options ) : object Update port action (PUT /ports/port-id)
updateRouter ( string $routerId, array | object $options ) : object Update Router action (PUT /routers/router-id)
updateSubnet ( string $subnetId, array | object $options ) : object Update Subnet action (PUT /subnets/subnet-id)

Приватные методы

Метод Описание
filterNull ( mixed $v ) : boolean NULL value filter callback

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Scalr\Service\OpenStack\Services\NetworkService $network )
$network Scalr\Service\OpenStack\Services\NetworkService

addRouterInterface() публичный Метод

This operation attaches a subnet to an internal router interface. Either a subnet identifier or a port identifier must be passed in the request body. If both are specified, a 400 Bad Request error is returned. When the subnet_id attribute is specified in the request body, the subnet's gateway ip address is used to create the router interface; otherwise, if port_id is specified, the IP address associated with the port is used for creating the router interface. It is worth remarking that a 400 Bad Request error is returned if several IP addresses are associated with the specified port, or if no IP address is associated with the port; also a 409 Conflict is returned if the port is already used.
public addRouterInterface ( string $routerId, string $subnetId = null, string $portId = null ) : object
$routerId string The ID of the router
$subnetId string optional The identifier of the subnet
$portId string optional The identifier of the port
Результат object Returns both port and subnet identifiers as object's properties

associateLbHealthMonitorWithPool() публичный Метод

Associate health monitor with the pool (POST /lb/pools/pool-id/health_monitors)
public associateLbHealthMonitorWithPool ( string $poolId, string $healthMonitorId ) : object
$poolId string The identifier of the LBaaS pool
$healthMonitorId string The identifier of the LBaaS health monitor
Результат object

createFloatingIp() публичный Метод

Creates a new floating IP, and configures its association with an internal port, if the relevant information are specified.
public createFloatingIp ( string $floatingNetworkId, string $portId = null, $fixedIpAddress = null ) : object
$floatingNetworkId string The identifier of the external network
$portId string optional Internal port
Результат object Returns allocated floating ip details

createLbHealthMonitor() публичный Метод

Creates LBaaS Health Monitor (POST /lb/health_monitors)
public createLbHealthMonitor ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbHealthMonitor $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateLbHealthMonitor The request object
Результат object Returns LBaaS health monitor object

createLbMember() публичный Метод

Creates LBaaS member (POST /lb/members)
public createLbMember ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbMember $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateLbMember The request object
Результат object Returns LBaaS member object

createLbPool() публичный Метод

Creates LBaaS pool (POST /lb/pools)
public createLbPool ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbPool $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateLbPool The request object
Результат object Returns detailed info of the created pool

createLbVip() публичный Метод

Creates LBaaS vip (POST /lb/vips)
public createLbVip ( Scalr\Service\OpenStack\Services\Network\Type\CreateLbVip $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateLbVip The request object
Результат object Returns detailed info of the created VIP

createNetwork() публичный Метод

Creates a new Quantum network.
public createNetwork ( string $name = null, boolean $adminStateUp = null, boolean $shared = null, string $tenantId = null ) : object
$name string optional A string specifying a symbolic name for the network, which is not required to be unique
$adminStateUp boolean optional The administrative status of the network
$shared boolean optional Whether this network should be shared across all tenants or not. Note that the default policy setting restrict usage of this attribute to administrative users only
$tenantId string optional The tenant which will own the network. Only administrative users can set the tenant identifier. This cannot be changed using authorization policies
Результат object Returns detailed information for the created network

createPort() публичный Метод

This operation creates a new Quantum port. The network where the port is created must be specified in the network_id attribute in the request body. You can also specify the following optional attributes: • A symbolic name for the port • MAC address. If an invalid address is specified a 400 Bad Request error will be returned, whereas a 409 Conflict error will be returned if the specified MAC address is already in use. When the MAC address is not specified, Quantum will try to allocate one for the port being created. If there is a failure while generating the address, a 503 Service Unavailable error will be returned. • Administrative state. Set to true for up, and false for down. • Fixed IPs • If you specify just a subnet ID, Quantum allocates an available IP from that subnet to the port. • If you specify both a subnet ID and an IP address, Quantum tries to allocate the specified address to the port. • Host routes for the port, in addition to the host routes defined for the subnets that the port is associated with.
public createPort ( Scalr\Service\OpenStack\Services\Network\Type\CreatePort $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreatePort Create port request object
Результат object Returns port object on success or throws an exception otherwise

createRouter() публичный Метод

This operation creates a new logical router. When it is created, a logical router does not have any internal interface. In other words, it is not associated to any subnet. The user can optionally specify an external gateway for a router at create time; a router's external gateway must be plugged into an external network, that is to say a network for which the extended field router:external is set to true.
public createRouter ( Scalr\Service\OpenStack\Services\Network\Type\CreateRouter $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateRouter Create router request object
Результат object Returns router object on success or throws an exception otherwise

createSecurityGroup() публичный Метод

Creates Security group (POST /security-groups)
public createSecurityGroup ( string $name, string $description = null ) : object
$name string The name of the security group
$description string optional The description of the security group
Результат object Returns security group object

createSecurityGroupRule() публичный Метод

Creates Security Group Rule (POST /security-group-rules)
public createSecurityGroupRule ( Scalr\Service\OpenStack\Services\Network\Type\CreateSecurityGroupRule $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateSecurityGroupRule The request object
Результат object Returns Security Group Rule object

createSubnet() публичный Метод

This operation creates a new subnet on the specified network. The network ID, network_id, is required. You must also specify the cidr attribute for the subnet. The remaining attributes are optional. By default, Quantum creates IP v4 subnets. To create an IP v6 subnet, you must specify the value 6 for the ip_version attribute in the request body. Quantum does not try to derive the correct IP version from the provided CIDR. If the parameter for the gateway address, gateway_ip, is not specified, Quantum allocates an address from the cidr for the gateway for the subnet. To specify a subnet without a gateway, specify the value null for the gateway_ip attribute in the request body. If allocation pools attribute, allocation_pools, is not specified, Quantum automatically allocates pools for covering all IP addresses in the CIDR, excluding the address reserved for the subnet gateway. Otherwise, you can explicitly specify allocation pools as shown in the following example. When allocation_pools and gateway_ip are both specified, it is up to the user ensuring the gateway ip does not overlap with the specified allocation pools; otherwise a 409 Conflict error will be returned.
public createSubnet ( Scalr\Service\OpenStack\Services\Network\Type\CreateSubnet $request ) : object
$request Scalr\Service\OpenStack\Services\Network\Type\CreateSubnet Create subnet request object
Результат object Returns subnet object on success or throws an exception otherwise

deleteFloatingIp() публичный Метод

If the floating IP being removed is associated with a Quantum port, the association is removed as well.
public deleteFloatingIp ( integer $floatingIpId ) : boolean
$floatingIpId integer Floating IP address ID
Результат boolean Returns true on success or throws an exception

deleteLbHealthMonitor() публичный Метод

Deletes LBaaS health monitor (DELETE /lb/health_monitors/health_monitor-id)
public deleteLbHealthMonitor ( string $healthMonitorId ) : boolean
$healthMonitorId string The ID of the health monitor to delete
Результат boolean Returns true on success or throws an exception

deleteLbMember() публичный Метод

Deletes LBaaS member (DELETE /lb/members/member-id)
public deleteLbMember ( string $memberId ) : boolean
$memberId string The ID of the member to delete
Результат boolean Returns true on success or throws an exception

deleteLbPool() публичный Метод

Deletes LBaaS pool (DELETE /lb/pools/pool-id)
public deleteLbPool ( string $poolId ) : boolean
$poolId string The ID of the pool to delete
Результат boolean Returns true on success or throws an exception

deleteLbVip() публичный Метод

Deletes LBaaS VIP (DELETE /lb/vips/vip-id)
public deleteLbVip ( string $vipId ) : boolean
$vipId string The ID of the VIP to delete
Результат boolean Returns true on success or throws an exception

deleteNetwork() публичный Метод

This operation deletes a Quantum network and its associated subnets provided that no port is currently configured on the network. If ports are still configured on the network that you want to delete, a 409 Network In Use error is returned.
public deleteNetwork ( string $networkId ) : boolean
$networkId string The ID of the network to remove.
Результат boolean Returns true on success or throws an exception otherwise

deletePort() публичный Метод

This operation removes a port from a Quantum network. If IP addresses are associated with the port, they are returned to the respective subnets allocation pools.
public deletePort ( string $portId ) : boolean
$portId string The ID of the port to remove.
Результат boolean Returns true on success or throws an exception otherwise

deleteRouter() публичный Метод

This operation removes a logical router; The operation will fail if the router still has some internal interfaces. Users must remove all router interfaces before deleting the router, by removing all internal interfaces through remove router interface operation.
public deleteRouter ( string $routerId ) : boolean
$routerId string The ID of the router to remove.
Результат boolean Returns true on success or throws an exception otherwise

deleteSecurityGroup() публичный Метод

This operation deletes an OpenStack Networking security group and its associated security group rules, provided that a port is not associated with the security group
public deleteSecurityGroup ( string $id ) : boolean
$id string The UUID of the security group to delete
Результат boolean Returns true on success or throws an exception

deleteSecurityGroupRule() публичный Метод

Deletes a specified rule from a OpenStack Networking security group.
public deleteSecurityGroupRule ( string $id ) : boolean
$id string The UUID of the security group rule to delete
Результат boolean Returns true on success or throws an exception

deleteSubnet() публичный Метод

This operation removes a subnet from a Quantum network. The operation fails if IP addresses from the subnet that you want to delete are still allocated.
public deleteSubnet ( string $subnetId ) : boolean
$subnetId string The ID of the subnet to remove.
Результат boolean Returns true on success or throws an exception otherwise

disassociateLbHealthMonitorFromPool() публичный Метод

Disassociates health monitor from a pool (DELETE /lb/pools/pool-id/health_monitors/healthmonitor-id)
public disassociateLbHealthMonitorFromPool ( string $poolId, string $healthMonitorId ) : boolean
$poolId string The identifier of the LBaaS pool
$healthMonitorId string The identifier of the LBaaS health monitor
Результат boolean Returns boolean true on success or throws an exception

escape() публичный Метод

Escapes string
public escape ( string $string ) : string
$string string A string needs to be escapted
Результат string Returns url encoded string

getClient() публичный Метод

Gets HTTP Client
public getClient ( ) : Scalr\Service\OpenStack\Client\ClientInterface
Результат Scalr\Service\OpenStack\Client\ClientInterface Returns HTTP Client

getFloatingIp() публичный Метод

Lists details of the floating IP address associated with floating_IP_address_ID.
public getFloatingIp ( integer $floatingIpId ) : object
$floatingIpId integer The unique identifier associated with allocated floating IP address.
Результат object Returns details of the floating IP address.

listExtensions() публичный Метод

This operation returns a response body. In the response body, each extension is identified by two unique identifiers, a namespace and an alias. Additionally an extension contains documentation links in various formats
public listExtensions ( ) : array
Результат array Returns list of available extensions

listFloatingIps() публичный Метод

Lists floating IP addresses associated with the tenant or account.
public listFloatingIps ( ) : Scalr\Service\OpenStack\Type\DefaultPaginationList
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList Returns the list floating IP addresses associated with the tenant or account.

listLbHealthMonitors() публичный Метод

List LBaaS Health Monitors action (GET /lb/health_monitors[/health-monitors-id])
public listLbHealthMonitors ( string $healthMonitorId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbHealthMonitorsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$healthMonitorId string optional The ID of the health monitor to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListLbHealthMonitorsFilter optional The query filter.
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the Health Monitors or the requested pool

listLbMembers() публичный Метод

List Members action (GET /lb/members[/member-id])
public listLbMembers ( string $memberId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbMembersFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$memberId string optional The ID of the member to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListLbMembersFilter optional The query filter.
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the Members or the requested pool

listLbPools() публичный Метод

List Pools action (GET /lb/pools[/pool-id])
public listLbPools ( string $poolId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbPoolsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$poolId string optional The ID of the Pool to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListLbPoolsFilter optional The query filter.
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the Pools or the requested pool

listLbVips() публичный Метод

List VIPs action (GET /lb/vips[/vip-id])
public listLbVips ( string $vipId = null, Scalr\Service\OpenStack\Services\Network\Type\ListLbVipsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$vipId string optional The ID of the VIP to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListLbVipsFilter optional The query filter.
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the VIPs or the requested VIP

listNetworks() публичный Метод

Lists a summary of all networks defined in Quantum that are accessible to the tenant who submits the request.
public listNetworks ( string $networkId = null, Scalr\Service\OpenStack\Services\Network\Type\ListNetworksFilter $filter = null ) : array | object
$networkId string optional The ID of the network to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListNetworksFilter optional The query filter.
Результат array | object Returns the list of the networks or one network

listPorts() публичный Метод

Lists all ports to which the tenant has access.
public listPorts ( string $portId = null, Scalr\Service\OpenStack\Services\Network\Type\ListPortsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$portId string optional The ID of the port to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListPortsFilter The filter options
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the ports or the information about one port

listRouters() публичный Метод

This operation returns a list of routers to which the tenant has access. Default policy settings return only those routers that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights. Users can control which attributes should be returned by using the fields query parameter. Additionally, results can be filtered by using query string parameters.
public listRouters ( string $routerId = null, Scalr\Service\OpenStack\Services\Network\Type\ListRoutersFilter $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$routerId string optional The ID of the router to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListRoutersFilter optional The filter options. Filter doesn't apply to detailed info
$fields array optional The list of the fields to show
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the router or the information about one router

listSecurityGroupRules() публичный Метод

Lists a summary of all OpenStack Networking security group rules that the specified tenant can access.
public listSecurityGroupRules ( string $id = null, Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupRulesFilter $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$id string optional The ID of the security group rule to view
$filter Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupRulesFilter optional The filter options. Filter doesn't apply to detailed info
$fields array optional The list of the fields to show
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the security groups or specified security group

listSecurityGroups() публичный Метод

Gets the list of the security groups
public listSecurityGroups ( string $id = null, Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupsFilter $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$id string optional The ID of the security group to view
$filter Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupsFilter optional The filter options. Filter doesn't apply to detailed info
$fields array optional The list of the fields to show
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the security groups or specified security group

listSubnets() публичный Метод

Lists all subnets that are accessible to the tenant who submits the request.
public listSubnets ( string $subnetId = null, Scalr\Service\OpenStack\Services\Network\Type\ListSubnetsFilter $filter = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object
$subnetId string optional The ID of the subnet to show detailed info
$filter Scalr\Service\OpenStack\Services\Network\Type\ListSubnetsFilter optional The filter.
Результат Scalr\Service\OpenStack\Type\DefaultPaginationList | object Returns the list of the subnets or one subnet

removeRouterInterface() публичный Метод

This operation removes an internal router interface, thus detaching a subnet from the router. Either a subnet identifier (subnet_id) or a port identifier (port_id) should be passed in the request body; this will be used to identify the router interface to remove. If both are specified, the subnet identifier must correspond to the one of the first ip address on the port specified by the port identifier; Otherwise a 409 Conflict error will be returned. The response will contain information about the affected router and interface. A 404 Not Found error will be returned either if the router or the subnet/port do not exist or are not visible to the user. As a consequence of this operation, the port connecting the router with the subnet is removed from the subnet's network.
public removeRouterInterface ( string $routerId, string $subnetId = null, string $portId = null ) : object
$routerId string The ID of the router
$subnetId string optional The identifier of the subnet
$portId string optional The identifier of the port
Результат object Returns raw response as object

updateFloatingIp() публичный Метод

This operation has the name of setting, unsetting, or updating the assocation between a floating ip and a Quantum port. The association process is exactly the same as the one discussed for the create floating IP operation.
public updateFloatingIp ( string $floatingIpId, string $portId = null ) : object
$floatingIpId string The identifier of the floating IP
$portId string optional Internal port
Результат object Returns allocated floating ip details

updateLbHealthMonitor() публичный Метод

Update LBaaS health monitor (PUT /lb/health_monitors/health_monitors-id)
public updateLbHealthMonitor ( string $healthMonitorId, array | object $options ) : object
$healthMonitorId string The Id of the LBaaS health monitor to update
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns LBaaS health monitor object on success or throws an exception otherwise

updateLbMember() публичный Метод

Update LBaaS member (PUT /lb/members/member-id)
public updateLbMember ( string $memberId, array | object $options ) : object
$memberId string The Id of the LBaaS member to update
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns LBaaS member object on success or throws an exception otherwise

updateLbPool() публичный Метод

Update LBaaS pool (PUT /lb/pools/pool-id)
public updateLbPool ( string $poolId, array | object $options ) : object
$poolId string The Id of the LBaaS pool to update
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns LBaaS pool object on success or throws an exception otherwise

updateLbVip() публичный Метод

Update LBaaS VIP (PUT /lb/vips/vip-id)
public updateLbVip ( string $vipId, array | object $options ) : object
$vipId string The Id of the LBaaS VIP to update
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns LBaaS VIP object on success or throws an exception otherwise

updateNetwork() публичный Метод

Updates the specified network. Either name or admin_state_up must be provided for this action.
public updateNetwork ( string $networkId, string $name = null, boolean $adminStateUp = null ) : object
$networkId string The ID of the network to update.
$name string optional A string specifying a symbolic name for the network, which is not required to be unique
$adminStateUp boolean optional The administrative status of the network
Результат object Returns detailed information for the updated network

updatePort() публичный Метод

You can use this operation to update information for a port, such as its symbolic name and associated IPs. When you update IPs for a port, the previously associated IPs are removed, returned to the respective subnets allocation pools, and replaced by the IPs specified in the body for the update request. Therefore, this operation replaces the fixed_ip attribute when it is specified in the request body. If the new IP addresses are not valid, for example, they are already in use, the operation fails and the existing IP addresses are not removed from the port.
public updatePort ( string $portId, array | object $options ) : object
$portId string The ID of the port
$options array | object The list of the options to change
Результат object Returns port object on success or throws an exception otherwise

updateRouter() публичный Метод

This operation updates a logical router. Beyond the name and the administrative state, the only parameter which can be updated with this operation is the external gateway. Please note that this operation does not allow to update router interfaces. To this aim, the add router interface and remove router interface should be used.
public updateRouter ( string $routerId, array | object $options ) : object
$routerId string The Id of the router
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns router object on success or throws an exception otherwise

updateSubnet() публичный Метод

This operation updates the specified subnet. Some attributes, such as IP version (ip_version), CIDR (cidr), and IP allocation pools (allocation_pools) cannot be updated. Attempting to update these attributes results in a 400 Bad Request error.
public updateSubnet ( string $subnetId, array | object $options ) : object
$subnetId string The Id of the subnet
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns subnet object on success or throws an exception otherwise

Описание свойств

$service защищенное свойство

protected NetworkService,Scalr\Service\OpenStack\Services $service
Результат Scalr\Service\OpenStack\Services\NetworkService