(self, request, tenant_id, stack_name, stack_id)
return "Only action-check is allowed."
Performs an action on a stack. Only action-check is enabled at
        Rackspace.
        http://developer.openstack.org/api-ref-orchestration-v1.html#stack-actions
        http://developer.openstack.org/api-ref-orchestration-v1.html#stack_action_check
Performs an action on a stack. Only action-check is enabled at
        Rackspace.
        http://developer.openstack.org/api-ref-orchestration-v1.html#stack-actions
        http://developer.openstack.org/api-ref-orchestration-v1.html#stack_action_check
Performs an action on a stack . Only action - check is enabled at Rackspace . http : // developer . openstack . org / api - ref - orchestration - v1 . html#stack - actions http : // developer . openstack . org / api - ref - orchestration - v1 . html#stack_action_check
def perform_action(self, request, tenant_id, stack_name, stack_id):
        """
        Performs an action on a stack. Only action-check is enabled at
        Rackspace.
        http://developer.openstack.org/api-ref-orchestration-v1.html#stack-actions
        http://developer.openstack.org/api-ref-orchestration-v1.html#stack_action_check
        """
        region_collection = self._region_collection_for_tenant(tenant_id)

        body = json_from_request(request)
        valid_actions = ('cancel_update', 'check', 'resume', 'suspend')

        if len(body.keys()) != 1 or list(body.keys())[0] not in valid_actions:
            request.setResponseCode(400)
            return "Action in request must be one of {}".format(
                ", ".join(valid_actions))

        if 'check' in body:
            return region_collection.request_check(
                request, stack_name, stack_id)

        request.setResponseCode(405)
        return "Only action-check is allowed."
def perform_action ( self , request , tenant_id , stack_name , stack_id ) : region_collection = self . _region_collection_for_tenant ( tenant_id ) body = json_from_request ( request ) valid_actions = ( 'cancel_update' , 'check' , 'resume' , 'suspend' ) if len ( body . keys ( ) ) != 1 or list ( body . keys ( ) ) [ 0 ] not in valid_actions : request . setResponseCode ( 400 ) return "Action in request must be one of {}" . format ( ", " . join ( valid_actions ) ) if 'check' in body : return region_collection . request_check ( request , stack_name , stack_id ) request . setResponseCode ( 405 ) return "Only action-check is allowed."