메소드 | 설명 | |
---|---|---|
__construct ( |
Constructor | |
__get ( $name ) | It's used to retrieve service interface instances as public properties | |
auth ( ) : object | Performs an authentication request | |
createSecurityGroup ( string $name, string $description ) : object | Create Security Group action | |
createSecurityGroupRule ( Scalr\Service\OpenStack\Services\Network\Type\CreateSecurityGroupRule | object | array $request ) : object | Creates Security Group Rule (POST /security-group-rules) | |
decamelize ( string $str ) : string | Decamelizes a string | |
deleteSecurityGroup ( integer $securityGroupId ) : boolean | Removes a specific security group | |
deleteSecurityGroupRule ( string $securityGroupRuleId ) : boolean | Deletes Security Group Rule (DELETE /security-group-rules/rules-security-groups-id}) | |
getAvailableServices ( ) : array | Gets a list of available services | |
getClient ( ) : |
Gets Client | |
getConfig ( ) : |
Gets the OpenStack config | |
hasNetworkSecurityGroupExtension ( ) : boolean | Checks whether openstack has network service as well as security group extension | |
hasService ( $serviceName, string $ns = null ) : boolean | Checks whether specified service does exist in the retrieved endpoints for this user. | |
listSecurityGroupRules ( string $id = null, ListSecurityGroupRulesFilter | array $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object | null | Gets the list of the security group rules (GET /security-group-rules/[rules-security-groups-id] ) | |
listSecurityGroups ( string $serverId = null, Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupsFilter | array $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object | Gets list of security groups | |
listServices ( ) : array | Gets the list of allowed services for this tenant | |
listZones ( ) : array | Gets the list of available zones for the current endpoint | |
resetRequestTimeout ( ) : |
Sets default request timeout for api calls (from config) | |
setDebug ( boolean $debug = true ) : |
Enables or disables debug mode | |
setRequestTimeout ( integer $requestTimeout ) : |
Sets request timeout for api calls |
public __construct ( |
||
$config | OpenStack configuration object |
public __get ( $name ) |
public static decamelize ( string $str ) : string | ||
$str | string | A string "FooName" |
리턴 | string | Returns decamelized string "foo_name" |
public deleteSecurityGroup ( integer $securityGroupId ) : boolean | ||
$securityGroupId | integer | Security group unique identifier. |
리턴 | boolean | Returns true on success or throws an exception |
public deleteSecurityGroupRule ( string $securityGroupRuleId ) : boolean | ||
$securityGroupRuleId | string | The UUID of the security group rule to delete |
리턴 | boolean | Returns true on success or throws an exception |
public static getAvailableServices ( ) : array | ||
리턴 | array | Returns the list of available services looks like array(serviceName => className) |
public getClient ( ) : |
||
리턴 | Returns RestClient |
public getConfig ( ) : |
||
리턴 | Returns OpenStack config |
public hasNetworkSecurityGroupExtension ( ) : boolean | ||
리턴 | boolean | Returns true if network service exists and has security group extension |
public hasService ( $serviceName, string $ns = null ) : boolean | ||
$ns | string | optional The namespace |
리턴 | boolean | Returns true if specified service does exist for this user. |
public listSecurityGroupRules ( string $id = null, ListSecurityGroupRulesFilter | array $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object | null | ||
$id | string | optional The ID of the security group rule to view |
$filter | ListSecurityGroupRulesFilter | array | 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 | null | Returns the list of the security groups, specified security group or null |
public listSecurityGroups ( string $serverId = null, Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupsFilter | array $filter = null, array $fields = null ) : Scalr\Service\OpenStack\Type\DefaultPaginationList | object | ||
$serverId | string | optional The ID of the security group to view |
$filter | Scalr\Service\OpenStack\Services\Network\Type\ListSecurityGroupsFilter | array | 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 |
public listServices ( ) : array | ||
리턴 | array | Returns the list of allowed services for this tenant |
public resetRequestTimeout ( ) : |
||
리턴 |
public setRequestTimeout ( integer $requestTimeout ) : |
||
$requestTimeout | integer | Request timeout (in seconds) |
리턴 |