query
stringlengths
9
9.05k
document
stringlengths
10
222k
negatives
listlengths
19
20
metadata
dict
Gets the default settings for LSGs. [Example] ${resp} = Fusion Api Get Lsg Default Settings| |
def fusion_api_get_lsg_default_settings(self, api=None, headers=None): return self.lsg.get(api=api, param='/defaultSettings', headers=headers)
[ "def getDefaultSettings():\n return {}", "def getDefaultSettings(self) -> ghidra.docking.settings.Settings:\n ...", "def fusion_api_get_lsg_setting(self, uri, settingsId=None, api=None, headers=None):\n param = '/settings/%s' % (settingsId)\n return self.lsg.get(uri=uri, api=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a particular LSG setting. [Arguments]
def fusion_api_get_lsg_setting(self, uri, settingsId=None, api=None, headers=None): param = '/settings/%s' % (settingsId) return self.lsg.get(uri=uri, api=api, param=param, headers=headers)
[ "def get_setting(setting):\n import settings\n return getattr(settings, setting)", "def get_setting(self, setting):\n return self.do_rpc(\"get_setting\", key=key)", "def fusion_api_get_lsg(self, uri=None, param='', api=None, headers=None):\n return self.lsg.get(uri=uri, param=param, api=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of LSs. [Arguments]
def fusion_api_get_ls(self, uri=None, api=None, headers=None, param=''): return self.ls.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_collection():", "def global_service_collection():\n\tglobal global_lsc\n\t# If this is the first call then the object is not yet created\n\tif not global_lsc:\n\t\t# Create the global object\n\t\tglobal_lsc = LadonServiceCollection()\n\treturn global_lsc", "def get_collections(self) -> List[str]:", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get existing compatibility report [Example] ${resp} = Fusion Api Get Security Compatibility Report | | |
def fusion_api_get_security_compatibility_report(self, uri=None, api=None, headers=None, param='/compatibility-report'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_compatibility_report(self, uri, param='', api=None, headers=None):\n return self.migratableVcDomain.get(uri=uri, api=api, headers=headers, param=param)", "def get_report (vt_apykey, resource):\r\n #En los parametros de la consulta se ponen la llave y el identificador\r\n param...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete existing compatibility report [Example] ${resp} = Fusion Api Delete Security Compatibility Report | | |
def fusion_api_delete_security_compatibility_report(self, uri=None, api=None, headers=None, param='/compatibility-report'): return self.security_standards.delete(uri=uri, api=api, headers=headers, param=param)
[ "def remove_request_supplemental_report_status(apps, schema_editor):\n db_alias = schema_editor.connection.alias\n compliance_report_status = apps.get_model('api', 'ComplianceReportStatus')\n\n compliance_report_status.objects.using(db_alias).get(\n status='Requested Supplemental'\n ).delete()", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Does Security Mode Change FIPS/CNSA/LEGACY. [Arguments]
def fusion_api_change_security_mode(self, body, uri=None, api=None, headers=None, param='/modes/current-mode'): return self.security_standards.put(uri=uri, api=api, headers=headers, body=body, param=param)
[ "def secure_mode(self, secure_mode):\n\n self._secure_mode = secure_mode", "def attack_mode():\n return", "def secure_mode_in(self, secure_mode_in):\n\n self._secure_mode_in = secure_mode_in", "def secure_mode_not(self, secure_mode_not):\n\n self._secure_mode_not = secure_mode_not", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a list of Security modes [Example] ${resp} = Fusion Api Get Security Modes | | | |
def fusion_api_get_security_modes(self, uri=None, api=None, headers=None, param='/modes'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_current_security_mode(self, uri=None, api=None, headers=None, param='/modes/current-mode'):\n return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_security_modeName(self, uri=None, api=None, headers=None, param=''):\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a list of Security modes [Example] ${resp} = Fusion Api Get Current Security Mode | | | |
def fusion_api_get_current_security_mode(self, uri=None, api=None, headers=None, param='/modes/current-mode'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_security_modes(self, uri=None, api=None, headers=None, param='/modes'):\n return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_security_modeName(self, uri=None, api=None, headers=None, param=''):\n return self.security_s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a list of Security modes [Example] ${resp} = Fusion Api Get Security ModeName | | | |
def fusion_api_get_security_modeName(self, uri=None, api=None, headers=None, param=''): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_security_modes(self, uri=None, api=None, headers=None, param='/modes'):\n return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_current_security_mode(self, uri=None, api=None, headers=None, param='/modes/current-mode'):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update security protocols [Example] ${resp} = Fusion Api Update Security Protocols | | | | |
def fusion_api_update_security_protocols(self, body, uri=None, api=None, headers=None, param='/protocols'): return self.security_standards.put(body=body, uri=uri, api=api, headers=headers, param=param)
[ "def test_update_firewall_rule_protocol(self):\r\n resource = 'firewall_rule'\r\n cmd = firewallrule.UpdateFirewallRule(test_cli20.MyApp(sys.stdout),\r\n None)\r\n self._test_update_resource(resource, cmd, 'myid',\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a list of security protocols [Example] ${resp} = Fusion Api Get Security Protocols | | | |
def fusion_api_get_security_protocols(self, uri=None, api=None, headers=None, param='/protocols'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
[ "def protocols(self):\n return self._request('/shodan/protocols', {})", "def Get_AvailableProtocols(self, request, context: grpc.ServicerContext) \\\n -> Ot2Controller_pb2.Get_AvailableProtocols_Responses:\n # Run 'ls' command to collect the files.\n ssh_stdin, ssh_stdout, ssh_stde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a directory based on name OR uri. [Arguments]
def fusion_api_delete_directory(self, name=None, uri=None, api=None, headers=None): return self.logindomain.delete(name, uri, api, headers)
[ "def cleanup(uri):\n if os.path.isdir(uri):\n shutil.rmtree(uri)\n else:\n os.remove(uri)", "def delete_directory(DirectoryId=None):\n pass", "def remove_dir(self, uri):\n cdef bytes buri = unicode_path(uri)\n check_error(self.ctx,\n tiledb_vfs_remove_dir(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update role assignment to a directory group. [Arguments]
def fusion_api_update_group_role_assignment(self, body, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.update(body, api, headers)
[ "def set_role(userid, role, group, request=None):", "def update_group(self, group, **attrs):\n return self._update(_group.Group, group, prepend_key=False, **attrs)", "def update_group(self, group_name):\n self._runtime_error_if_called_during_showtime('update_group')\n self._current_update_group = g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete Directory Group Role Assignment. [Arguments]
def fusion_api_delete_group_role_assignment(self, name=None, uri=None, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.delete(name, uri, api, headers)
[ "def delete(self, domain_id, group_id, role_id):\n ENFORCER.enforce_call(\n action='identity:revoke_grant',\n build_target=functools.partial(_build_enforcement_target_attr,\n domain_id=domain_id,\n group...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve role assignments for directory group under a directory/all directories group or a specify group. [Arguments]
def fusion_api_get_group_role_assignment(self, uri=None, param='', api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_roles(groupname=None, group=None, obj=None):\n group_id = groupname or group.id\n\n group = get(groupname=group_id)\n if group is None:\n raise GroupNotFoundError\n\n group = group.getGroup()\n # when context obj is available we bypass getRolesInContext method\n # from PloneGroup c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validate Group and Roles [Arguments]
def fusion_api_validate_group_and_roles(self, body, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.validate(body, api, headers)
[ "def test_role_groups(self):\n pass", "def test_set_role_groups(self):\n pass", "def _ValidateRoles(dataproc, pools):\n if not pools:\n # The backend will automatically create the default pool.\n return\n seen_roles = set()\n for pool in pools:\n for role in pool.roles:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Login Domains Global Settings for specified appliance [Arguments]
def fusion_api_get_login_domains_global_settings(self, api=None, headers=None, param=''): return self.domain_settings.get(api, headers, param)
[ "def get_auth_settings():\n d = None\n try:\n db_path, err = config.get_db_path()\n if err:\n raise Exception(err)\n d, err = db.get_single_row(\n db_path, \"select * from samba_global_common where id=1\")\n if err:\n raise Exception(err)\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Put Login Domains Global Settings for specified appliance [Arguments]
def fusion_api_edit_login_domains_global_settings(self, body, param='', api=None, headers=None): return self.domain_settings.put(body, param, api, headers)
[ "def _set_credentials(args):\n if hasattr(args, 'username') and hasattr(args, 'apikey') \\\n and args.username and args.apikey:\n config.update({'username': args.username})\n config.update({'apikey': args.apikey})\n elif os.path.exists(os.path.expanduser('~/.jarvice.cfg')):\n C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Login to the appliance as the specified user by certificate [Arguments]
def fusion_api_two_factor_login_appliance(self, host, cert, headers=None): return self.loginsession.login_by_cert(host, cert, headers)
[ "def login(username, password, registry):\n click.echo(login_client_func(username, password, registry))", "def ncsa_login():\n import getpass\n output(\"Using %s for username.\" % username)\n username = getpass.getuser()\n if password is None:\n\tpassword = getpass.getpass()\n ncsa_wireless_logi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of active user sessions. You can use Fusion Api Switch Active User to any of these users. [Example] ${resp} = Fusion Api Get Active Sessions
def fusion_api_get_active_sessions(self): return self.loginsession.get_active_sessions()
[ "def get_sessions_list():\n sessions = Session.query.all()\n result = sessions_schema.dump(sessions).data\n return jsonify({'status': 'success', 'message': None, 'data': result}), 200", "def get_active_sessions():\n\n # The output changes based on locales, force it to be YY-MM-DD\n # for the benefi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current active user [Example] ${resp} = Fusion Api Get Active User
def fusion_api_get_active_user(self): return self.loginsession.get_active_user()
[ "def get_user():\n\treturn '1', 200", "def user_get():\r\n status_code = authenticate_request(request.headers, request.remote_addr)\r\n if(status_code != INT_OK):\r\n return respond_json(status_code)\r\n userid = request.headers['userId']\r\n user = get_user_details_proc(userid)\r\n return r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the given sessionId as current active sessionID. [Arguments]
def fusion_api_set_active_session(self, sessionId): return self.loginsession.set_active_session(sessionId)
[ "def test_set_session_id(self, context):\n context.set_session_id(b\"abc\")", "def set_session(session: Session) -> None:\n sympc.session.CURRENT_SESSION[str(session.uuid)] = session", "def session_id(self, value):\n if self.session_id != value:\n self._session_id = value\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Managed SAN. [Arguments]
def fusion_api_update_managed_san(self, body, uri, api=None, headers=None): return self.ms.update(body, uri, api, headers)
[ "def fusion_api_edit_san_manager(self, body, uri, api=None, headers=None):\n return self.dm.update(body, uri, api, headers)", "def update(self, **kwargs):\n context = self.to_dict().copy()\n data = {**context, **kwargs}\n self.client.update_strain(data)", "def protected_hostname_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of Managed SANs. [Arguments]
def fusion_api_get_managed_san(self, uri=None, param='', api=None, headers=None): return self.ms.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_san_manager(self, uri=None, param='', api=None, headers=None):\n return self.dm.get(uri=uri, api=api, headers=headers, param=param)", "def list(self, args):\n context = ContextLoader().load()\n try:\n cloud = context.getCloudService()\n vdcs = clo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the metrics configuration with the new values. Overwrites the existing configuration. [Arguments]
def fusion_api_update_metrics_configuration(self, body, api=None, headers=None): return self.metrics.update(body, api, headers)
[ "def _update_metrics(self):\n raise NotImplementedError", "def set_metrics(self):", "def update_metrics(self, round_num: int, metrics_to_append: Dict[str, Any]):\n raise NotImplementedError", "def metrics(self, metrics):\n\n self._metrics = metrics", "def update_state(self, **kwargs):\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetches the list of resource types and supported metrics that OneView is capable of relaying. [Example] ${resp} = Fusion Api Get Metrics Capability | |
def fusion_api_get_metrics_capability(self, api=None, headers=None): return self.metrics.get(api=api, headers=headers, param='/capability')
[ "def metrics(self) -> global___Response.Metrics:", "def supported_metrics_route():\n\n return flask.render_template(\"supported_metrics.html\",\n metrics=READ.get_m_keys())", "def supported_metrics(cls) -> List[str]:\n ...", "def __get_metrics(responses: Responses) ->...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetches the current configuration for which metrics are being relayed. [Example] ${resp} = Fusion Api Get Metrics Configuration | |
def fusion_api_get_metrics_configuration(self, api=None, headers=None): return self.metrics.get(api=api, headers=headers, param='/configuration')
[ "def get():\n response = None\n try:\n response = app.config['API_CONF']\n except Exception:\n abort(http_codes.SERVER_ERROR, \"Erreur interne lors de la récupération de la configuration\")\n\n return _success(response)", "def get_config (self):\n # ret = core....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Network Set [Arguments]
def fusion_api_create_network_set(self, body, api=None, headers=None): return self.network_set.create(body, api, headers)
[ "def make_network_set(name, networkUris=[]):\n\n return {\n 'name': name,\n 'type': 'network-set',\n 'nativeNetworkUri': None,\n 'networkUris': networkUris[:],\n 'connectionTemplateUri': None}", "def _create_network(self, *args):\n return self._network_class()", "def...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates an Network Set [Arguments]
def fusion_api_edit_network_set(self, body=None, uri=None, api=None, headers=None): return self.network_set.update(body, uri, api, headers)
[ "def update_ip_set_command(client: boto3.client, args: dict) -> CommandResults:\n kwargs = {\n 'Name': args.get('name', ''),\n 'Scope': SCOPE_MAP[args.get('scope') or DEFAULT_SCOPE],\n 'Id': args.get('id', '')\n }\n\n addresses_to_update = argToList(args.get('addresses')) or []\n ov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a Network Set from the appliance based on name OR uri [Arguments]
def fusion_api_delete_network_set(self, name=None, uri=None, api=None, headers=None): return self.network_set.delete(name, uri, api, headers)
[ "def fusion_api_delete_uplink_set(self, name=None, uri=None, api=None, headers=None):\n return self.uplink_set.delete(name, uri, api, headers)", "def deleteHostSet(self, name):\n self.http.delete('/hostsets/%s' % name)", "def delete_set(self, node, name):\r\n return self._send({'name': ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an Power Delivery Device. [Arguments]
def fusion_api_add_power_device(self, body, api=None, headers=None): return self.pd.create(body=body, api=api, headers=headers)
[ "def add_device(cls, values):\n return cls.dbdriver.add_device(values)", "def add_device(self, field, device, uc):\n self._devices[field] = device\n self._uc[field] = uc", "def _device_add(self, device):\n log.info('_device_change add %s', device)\n action = QtWidgets.QAction(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Power Delivery Device. [Arguments]
def fusion_api_edit_power_device(self, body, uri, api=None, headers=None): return self.pd.update(body=body, uri=uri, api=api, headers=headers)
[ "def update(self, device):\n raise NotImplementedError('Abstract method called')", "def testSimpleUpdate(self):\r\n self._tester.UpdateDevice(self._cookie, self._mobile_device.device_id, **_DEVICE_DICT)", "def update_package(self, *args):\r\n\r\n temp = (self.newProj.device[0],\\\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the unit identification (UID) light state of the specified power delivery device. The device must be an HPE iPDU component with a locator light (HPE Intelligent Load Segment, AC Module, HPE Intelligent Outlet Bar, or HPE Intelligent Outlet). [Arguments]
def fusion_api_set_power_device_uid_state(self, body, uri, api=None, headers=None): return self.pd.update(body=body, uri=uri, api=api, headers=headers, param='/uidState')
[ "def setLight(self, id, position, diffuse, specular, ambient):\r\n\t\t\r\n\t\tself.lights[id].set(position, diffuse, specular, ambient)", "def set_LED(name,light,value): #TODO UID convert to int\n name = _lookup(name)\n assert light in range(1,5), \"Error: light number must be an Integer between 1 and 4 inc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes Power Delivery Devices. If name or uri are not specified, all PDDs are removed. [Arguments]
def fusion_api_remove_power_device(self, name=None, uri=None, api=None, headers=None): return self.pd.delete(name=name, uri=uri, api=api, headers=headers)
[ "def fusion_api_remove_firmware_driver(self, name=None, uri=None, api=None, headers=None):\n return self.driver.delete(name, uri, api, headers)", "def removeDevice(self, node, fullDeviceName):", "def remove():\n run('pew rm {0}'.format(package_name()))", "def delete_all_devices_in_site(siteName)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the specified Power Delivery Device synchronously. [Arguments]
def fusion_api_remove_power_device_synchronously(self, uri, api=None, headers=None): return self.pd.delete(uri=uri, api=api, headers=headers, param='/synchronous')
[ "def fusion_api_remove_power_device(self, name=None, uri=None, api=None, headers=None):\n return self.pd.delete(name=name, uri=uri, api=api, headers=headers)", "async def async_device_removed(event):\n if event.data[\"action\"] != \"remove\":\n return\n await async_remove_autom...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the unit identification (UID) state (on, off, unknown) of the specified power outlet or extension bar resource. The device must be an HPE iPDU component with a locator light (HPE Intelligent Load Segment, AC Module, HPE Intelligent Outlet Bar, or HPE Intelligent Outlet). [Arguments]
def fusion_api_get_power_device_uid_state(self, uri=None, api=None, headers=None): return self.pd.get(uri=uri, api=api, headers=headers, param='/uidState')
[ "def identify(self):\n if self.cur_uid is None:\n return\n self.ola_thread.rdm_set(self.universe.get(), self.cur_uid, 0, \n \"IDENTIFY_DEVICE\", \n lambda b, s, uid = self.cur_uid:self._rdm_set_complete(uid, b, s), \n [self.id_state.get()])", "def fusion_api_set_p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a proxy server to the appliance [Arguments]
def fusion_api_add_proxy_server(self, body, api=None, headers=None): return self.proxyserver.add(body, api, headers)
[ "async def add_proxy(\n self,\n server: str,\n port: int,\n enable: bool,\n type_: ProxyType,\n *,\n request_id: str = None,\n request_timeout: int = None,\n skip_validation: bool = False\n ) -> Proxy:\n _co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an Rack. [Arguments]
def fusion_api_add_rack(self, body, api=None, headers=None): return self.rack.create(body, api, headers)
[ "def fusion_api_add_rack_manager(self, body, api=None, headers=None):\n return self.rackmanager.post(body, api, headers)", "def cmd_add(opts):\n config = load_config(opts.config)\n b = get_blockade(config, opts)\n b.add_container(opts.containers)", "def add(self, middleware):\n pass ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Rack. [Arguments]
def fusion_api_edit_rack(self, body, uri, api=None, headers=None): return self.rack.update(body, uri, api, headers)
[ "def update(self) -> requests.request:\n # Check if id is set\n if self.args.id is None:\n raise Exception('Provide id of asset you want to update')\n\n # Check URL validity\n if self.args.url is not None and self.check_url_invalidity():\n raise Exception('Provided ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a Rack. If name or uri are not specified, all Racks are removed. [Arguments]
def fusion_api_remove_rack(self, name=None, uri=None, api=None, headers=None): return self.rack.delete(name, uri, api, headers)
[ "def fusion_api_delete_rack_manager(self, uri, name=None, param='', api=None, headers=None):\n return self.rackmanager.delete(uri=uri, name=name, param=param, api=api, headers=headers)", "def rm(self, uri):\n raise osaka.utils.OsakaException(\n \"{0} does not implement 'rm' call\".for...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates remote syslog. API documentation was incomplete when this was created! [Arguments]
def fusion_api_configure_remote_syslog(self, body, api=None, headers=None): return self.remote_syslog.create(body, api, headers)
[ "def AddSyslog(server: str, port: int) -> None:\n buildinfo.syslog_port = port\n buildinfo.syslog_server = server\n logger = logging.getLogger()\n logger.addHandler(logging.handlers.SysLogHandler(address=(server, port)))", "def logsyslog(ui, message):\n ident = pycompat.sysstr(ui.config(b'serverlog', b'sys...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This handles update for remote syslog configuration. Configures the devices managed by OneView. [Arguments]
def fusion_api_update_remote_syslog_configuration(self, body, api=None, headers=None, param=None): return self.remote_syslog.update(body, api, headers, param)
[ "def fusion_api_configure_remote_syslog(self, body, api=None, headers=None):\n return self.remote_syslog.create(body, api, headers)", "def set_rsyslog_new_configuration():\n with open(rsyslog_conf_path, \"rt\") as fin:\n with open(\"tmp.txt\", \"wt\") as fout:\n for line in fin:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes remote syslog. API documentation was incomplete when this was created! [Arguments]
def fusion_api_delete_remote_syslog(self, logId, param='', api=None, headers=None): return self.remote_syslog.delete(logId, param, api, headers)
[ "def delete_syslog_server(client_session):\n\n cfg_result = client_session.delete('systemSyslogServer')\n\n if cfg_result['status'] == 204:\n return True\n else:\n return False", "def do_monitor_tcp_check_delete(client, args):\n item = client.tcpcheck.delete(args.id)\n utils.print_dic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets current remote syslog configuration. [Example] ${resp} = Fusion Api Get Remote Syslog Configuration | | |
def fusion_api_get_remote_syslog_configuration(self, api=None, headers=None, param=None): return self.remote_syslog.get(api=api, headers=headers, param=param)
[ "def get_config (self):\n # ret = core.adaptation.controller_adapter.domains.components[\n # 'OPENSTACK'].rest_adapter.get_config()\n # print \"Return: \", ret\n # print core.adaptation.controller_adapter.domains.components[\n # 'OPENSTACK'].rest_adapter._response.text\n pass", "def log_conf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the status of a restore operation in progress. [Arguments]
def fusion_api_get_restore_status(self, param='', uri=None, api=None, headers=None): return self.restore.get(uri=uri, api=api, headers=headers, param=param)
[ "def restore_status(self):\n return self._restore_status", "def _handle_check_restore_status(self, param):\r\n\r\n self.save_progress(\"In action handler for: {0}\".format(self.get_action_identifier()))\r\n action_result = self.add_action_result(ActionResult(dict(param)))\r\n\r\n # get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds (POST) a role to a group. [Arguments]
def fusion_api_add_role_to_group(self, body, api=None, headers=None): return self.roles.add_role_to_group(body, api=api, headers=headers)
[ "def set_role(userid, role, group, request=None):", "def _post_role(self):\n name = random_str(prefix=\"Access Control Role - \")\n return self.api.post(AccessControlRole, {\n \"access_control_role\": {\n \"name\": name,\n \"object_type\": \"Control\",\n \"context\": ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of SAS Interconnect Types. [Arguments]
def fusion_api_get_sas_interconnect_types(self, uri=None, param='', api=None, headers=None): return self.sasictypes.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_interconnect_types(self, param='', api=None, headers=None):\n return self.ictypes.get(api=api, headers=headers, param=param)", "def fusion_api_get_sas_interconnects(self, uri=None, param='', api=None, headers=None):\n return self.sasics.get(uri=uri, api=api, headers=heade...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of SAS Interconnects [Arguments]
def fusion_api_get_sas_interconnects(self, uri=None, param='', api=None, headers=None): return self.sasics.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_sas_interconnect_types(self, uri=None, param='', api=None, headers=None):\n return self.sasictypes.get(uri=uri, api=api, headers=headers, param=param)", "def describe_interconnects(interconnectId=None):\n pass", "def get_analysis_iocs():\n sample_id = demisto.getArg('id')\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a SAS Interconnect from the appliance based on name OR uri [Arguments]
def fusion_api_delete_sas_interconnect(self, name=None, uri=None, api=None, headers=None): return self.sasics.delete(name=name, uri=uri, api=api, headers=headers)
[ "def fusion_api_delete_sas_lig(self, name=None, uri=None, api=None, headers=None):\n return self.saslig.delete(name=name, uri=uri, api=api, headers=headers)", "def fusion_api_delete_sas_li(self, name=None, uri=None, api=None, headers=None):\n return self.sasli.delete(name=name, uri=uri, api=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Refreshes a SAS Interconnect using the PATCH http verb. [Arguments]
def fusion_api_refresh_sas_interconnect(self, body=None, uri=None, param='', api=None, headers=None): param = "/refreshState%s" % param return self.sasics.patch(body=body, uri=uri, param=param, api=api, headers=headers)
[ "def fusion_api_patch_interconnect(self, body, uri, param='', api=None, headers=None):\n return self.ic.patch(body=body, uri=uri, api=api, headers=headers, param=param)", "async def patch_req(self, endpoint : str, data : dict ):\r\n return self.session.patch('https://127.0.0.1:' + self.app_port ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a completed SAS LIG request body [Arguments]
def fusion_api_create_sas_lig_payload(self, body, api=None): return self.saslig.make_body(body=body, api=api)
[ "def LATCH_create(bytes=None, rotationInvariance=None, half_ssd_size=None, sigma=None): # real signature unknown; restored from __doc__\n pass", "def fusion_api_create_lig_payload(self, **kwargs):\n\n return self.lig.make_body(**kwargs)", "async def create(app, ref_id: str, otu_id: str, isolate_id...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a SAS LIG from the appliance based on name OR uri [Arguments]
def fusion_api_delete_sas_lig(self, name=None, uri=None, api=None, headers=None): return self.saslig.delete(name=name, uri=uri, api=api, headers=headers)
[ "def fusion_api_delete_sas_li(self, name=None, uri=None, api=None, headers=None):\n return self.sasli.delete(name=name, uri=uri, api=api, headers=headers)", "def fusion_api_delete_sas_interconnect(self, name=None, uri=None, api=None, headers=None):\n return self.sasics.delete(name=name, uri=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of SAS LIGs. [Arguments]
def fusion_api_get_sas_lig(self, uri=None, param='', api=None, headers=None): return self.saslig.get(uri=uri, param=param, api=api, headers=headers)
[ "def fusion_api_get_sas_li(self, uri=None, param='', api=None, headers=None):\n return self.sasli.get(uri=uri, param=param, api=api, headers=headers)", "def get_collections(self) -> List[str]:", "def Documents(self, default=[{}]):\n tmp = self.data.get('metadata', {}).get('documents', defa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a SAS LI [Arguments]
def fusion_api_delete_sas_li(self, name=None, uri=None, api=None, headers=None): return self.sasli.delete(name=name, uri=uri, api=api, headers=headers)
[ "def delete(identifier):", "def fusion_api_delete_sas_lig(self, name=None, uri=None, api=None, headers=None):\n return self.saslig.delete(name=name, uri=uri, api=api, headers=headers)", "def main(args):\n num_removed = Index().remove(*args[\"ID\"])\n print(\"removed %d entries\" % num_removed)\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of SAS LIs. [Arguments]
def fusion_api_get_sas_li(self, uri=None, param='', api=None, headers=None): return self.sasli.get(uri=uri, param=param, api=api, headers=headers)
[ "def fusion_api_get_sas_lig(self, uri=None, param='', api=None, headers=None):\n return self.saslig.get(uri=uri, param=param, api=api, headers=headers)", "def fusion_api_get_ls(self, uri=None, api=None, headers=None, param=''):\n return self.ls.get(uri=uri, api=api, headers=headers, param=pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of SAS LI firmware. [Arguments]
def fusion_api_get_sas_li_firmware(self, uri=None, param='', api=None, headers=None): param = "/firmware%s" % param return self.sasli.get(uri=uri, param=param, api=api, headers=headers)
[ "def get_latest_firmware(request, instantiate_firmware):\n if request.config.getoption(\"--1.x\"):\n fw_version_list = []\n try:\n\n for fw_obj in instantiate_firmware:\n latest_firmware = fw_obj.get_fw_version()\n latest_firmware = latest_firmware.replace(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates firmware version at SAS LI level [Arguments]
def fusion_api_update_sas_li_firmware(self, body=None, uri=None, api=None, headers=None): param = "/firmware" # put method expecting a param return self.sasli.put(body=body, uri=uri, param=param, api=api, headers=headers)
[ "def update_firmware(self) -> str:", "def update_firmware(self):\n self.execute_command(CMD_UPDATE_FIRMWARE)", "def test_update_hyperflex_server_firmware_version(self):\n pass", "def update_version(self, version):", "def test_patch_hyperflex_server_firmware_version(self):\n pass", "de...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates an SAS LI using the PATCH http verb. [Arguments]
def fusion_api_patch_sas_li(self, body=None, uri=None, api=None, headers=None): return self.sasli.patch(body, uri, api, headers)
[ "def fusion_api_patch_li(self, body=None, uri=None, api=None, headers=None):\n return self.li.patch(body, uri, api, headers)", "def fusion_api_update_sas_li_firmware(self, body=None, uri=None, api=None, headers=None):\n param = \"/firmware\" # put method expecting a param\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add a Server Hardware resource. [Arguments]
def fusion_api_add_server_hardware(self, body, api=None, headers=None, param=''): return self.sh.post(body, api, headers, param)
[ "def add_resource(self, resourcetype, resourcename, resource):\n self.resources[resourcetype].update({resourcename: resource})", "def addResource(self, resource):\n\t\tself.resources.append(resource)", "def add(cls, client, resource) :\n\t\ttry :\n\t\t\tif type(resource) is not list :\n\t\t\t\taddresourc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Server Hardware resource. [Arguments]
def fusion_api_edit_server_hardware(self, body, uri, api=None, headers=None): return self.sh.update(body, uri, api, headers)
[ "def command_update_hw(self, cmd):\n # TODO\n pass", "def fusion_api_add_server_hardware(self, body, api=None, headers=None, param=''):\n return self.sh.post(body, api, headers, param)", "def edit_scope_for_server_hardware(server_hardware_list):\n logger.info(\"Function call to edit ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the mpFirmwareVersion for a server hardware resource. [Arguments]
def fusion_api_edit_server_hardware_mp_firmware_version(self, body, uri, api=None, headers=None): return self.sh.update(body, uri, api, headers, param='/mpFirmwareVersion')
[ "def firmware_version(self, firmware_version):\n self._firmware_version = firmware_version", "def firmware_version(self, firmware_version: str):\n\n self._firmware_version = firmware_version", "def test_update_hyperflex_server_firmware_version(self):\n pass", "def test_patch_hyperflex_ser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of Server Hardware. [Arguments]
def fusion_api_get_server_hardware(self, uri=None, param='', api=None, headers=None): return self.sh.get(uri=uri, api=api, headers=headers, param=param)
[ "def list_hardware(self, tags=None, cpus=None, memory=None, hostname=None,\r\n domain=None, datacenter=None, nic_speed=None,\r\n public_ip=None, private_ip=None, **kwargs):\r\n if 'mask' not in kwargs:\r\n hw_items = [\r\n 'id',\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets firmware compliance list of Server Hardware. [Arguments]
def fusion_api_get_server_hardware_firmware_compliance(self, body, api=None, headers=None): return self.sh.post(body=body, param='/firmware-compliance', api=api, headers=headers)
[ "def test_get_hyperflex_server_firmware_version_list(self):\n pass", "def fusion_api_get_server_hardware_firmware(self, uri, api=None, headers=None):\n return self.sh.get(uri=uri, api=api, headers=headers, param='/firmware')", "def _get_server_hardware_info(serverName, attributes=\"all\"):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the list of BIOS/UEFI settings of the server hardware resource. [Arguments]
def fusion_api_get_server_hardware_bios(self, uri, api=None, headers=None): return self.sh.get(uri=uri, api=api, headers=headers, param='/bios')
[ "def get(isamAppliance, check_mode=False, force=False, ignore_error=False):\n return isamAppliance.invoke_get(\"Retrieving a list of firmware settings\",\n \"/firmware_settings\", ignore_error=ignore_error, requires_model=requires_model)", "def get_system_bios_settings( conte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the list of firmware settings of the server hardware resource. [Arguments]
def fusion_api_get_server_hardware_firmware(self, uri, api=None, headers=None): return self.sh.get(uri=uri, api=api, headers=headers, param='/firmware')
[ "def get(isamAppliance, check_mode=False, force=False, ignore_error=False):\n return isamAppliance.invoke_get(\"Retrieving a list of firmware settings\",\n \"/firmware_settings\", ignore_error=ignore_error, requires_model=requires_model)", "def fusion_api_get_server_hardware_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the settings that describe the environmental configuration (supported feature set, calibrated minimum & maximum power, location & dimensions, ...) of the server hardware resource. [Arguments]
def fusion_api_get_server_hardware_environmental_config(self, uri, api=None, headers=None): return self.sh.get(uri=uri, api=api, headers=headers, param='/environmentalConfiguration')
[ "def get_system_settings(self):\n return {\n 'num_features': self.num_features,\n 'scale_factor': self.scale_factor,\n 'num_levels': self.number_of_levels,\n 'edge_threshold': self.edge_threshold,\n 'patch_size': self.patch_size,\n 'fast_thres...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Refreshes a specified Server hardware URI [Arguments]
def fusion_api_refresh_server_hardware(self, body={"refreshState": "RefreshPending"}, uri=None, api=None, headers=None): return self.sh.update(body, uri=uri, api=api, headers=headers, param='/refreshState')
[ "def refresh(self, url, args, cancellationSignal):\n pass", "def request_refresh(*args):\n return _ida_kernwin.request_refresh(*args)", "def fusion_api_edit_server_hardware(self, body, uri, api=None, headers=None):\n return self.sh.update(body, uri, api, headers)", "def refresh():\n\tsocket...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an existing Logical Enclosure [Arguments] [Example] ${resp} = Fusion Api Get Logical Enclosure | | | |
def fusion_api_get_logical_enclosure(self, uri=None, api=None, headers=None, param=''): return self.logical_enclosure.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_eligibility(self, **kwargs) -> ApiResponse:\n return self._request(kwargs.pop('path'), data=kwargs.pop('body'), params=kwargs)", "def get(self, args, intent):\n\n try:\n db = get_db('expressions')\n db_results = db.get_intent_expressions(intent)\n expression...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes an existing Logical Enclosure [Arguments] [Example] ${resp} = Fusion Api Delete Logical Enclosure | | | | |
def fusion_api_delete_logical_enclosure(self, name=None, uri=None, param='', api=None, headers=None): return self.logical_enclosure.delete(name=name, uri=uri, param=param, api=api, headers=headers)
[ "def post_delete_environment(\n self, response: operations_pb2.Operation\n ) -> operations_pb2.Operation:\n return response", "def deleteDispatcher():\n rideRequestID = request.args.get('objectID', 0, type=str)\n collection.remove({'_id': ObjectId(rideRequestID)})\n print(\"SUCCES DELETE\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update an logical enclosure. [Arguments]
def fusion_api_update_logical_enclosure(self, body, uri, param='', api=None, headers=None, etag=None): return self.logical_enclosure.put(body, uri, param, api, headers, etag)
[ "def fusion_api_edit_enclosure(self, body, uri, api=None, headers=None):\n return self.enclosure.update(body, uri, api, headers)", "def update(name):\n update_operator(name)", "def fusion_api_update_logical_enclosure_from_group(self, uri=None, api=None, headers=None):\n param = '/up...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the logical enclosure to match its enclosure group [Arguments]
def fusion_api_update_logical_enclosure_from_group(self, uri=None, api=None, headers=None): param = '/updateFromGroup' return self.logical_enclosure.put(body=None, uri=uri, param=param, api=api, headers=headers)
[ "def fusion_api_edit_enclosure_group(self, body, uri, api=None, headers=None):\n return self.enclosure_group.update(body, uri, api, headers)", "def command_group(group_name):\n def wrapper(func):\n func.group_name = group_name\n return func\n return wrapper", "def fusion_api_updat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Server Hardware Type. [Arguments]
def fusion_api_edit_server_hardware_types(self, body, uri, api=None, headers=None): return self.types.update(body, uri, api, headers)
[ "def fusion_api_edit_server_hardware(self, body, uri, api=None, headers=None):\n return self.sh.update(body, uri, api, headers)", "def command_update_hw(self, cmd):\n # TODO\n pass", "def hw_firmware_type(self, hw_firmware_type):\n self._hw_firmware_type = hw_firmware_type", "d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of Server Hardware Types. [Arguments]
def fusion_api_get_server_hardware_types(self, uri=None, param='', api=None, headers=None): return self.types.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_all_servers_types():\n ret = _get_list(\n lambda server: server.type if server.type not in ['vanilla.winter', 'vanilla.desert', 'pvp'] else False,\n lambda server: server.type_name\n )\n\n # Extra server type filters\n ret.append({\n 'value': 'pacific+edelweiss',\n '...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes server hardware types in bulk based on name OR uri. If name AND uri are omitted, ALL shts are deleted. [Arguments]
def fusion_api_delete_server_hardware_types(self, name=None, uri=None, api=None, headers=None): return self.types.delete(name=name, uri=uri, api=api, headers=headers)
[ "def fusion_api_delete_os_deploymentserver(self, name=None, uri=None, param='', api=None, headers=None):\n return self.osds.delete(name=name, uri=uri, param=param, api=api, headers=headers)", "def fusion_api_remove_firmware_driver(self, name=None, uri=None, api=None, headers=None):\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Server Profile. [Arguments]
def fusion_api_create_server_profile(self, body, api=None, headers=None, param=''): return self.profile.create(body, api, headers, param=param)
[ "def run(cls, args):\n p = profile.create(args.name)\n print(\"Profile named {} successfully created\".format(p.name))", "def create_server_profile(profile_obj):\n FusionUIBase.navigate_to_section(SectionType.SERVER_PROFILES, time_for_loading=5)\n\n total = len(profile_obj)\n created = 0\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Server Profile. [Arguments]
def fusion_api_edit_server_profile(self, body, uri, api=None, headers=None, param=''): return self.profile.update(body, uri, api, headers, param=param)
[ "def UpdateProfile(self, request, context):\n context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)", "def update_profile(self, **kwargs) -> ApiResponse:\n return self._request(kwargs.pop('path'), data=kwargs.pop('body'), params=kwargs)", "def update_profile():\n logger.debug(\"entering function...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes server profiles in bulk based on name OR uri. If name AND uri are omitted, ALL profiles are deleted. [Arguments]
def fusion_api_delete_server_profile(self, name=None, uri=None, param='', api=None, headers=None): return self.profile.delete(name=name, uri=uri, param=param, api=api, headers=headers)
[ "def bak_delete_all_appliance_server_profiles():\n selenium2lib = ui_lib.get_s2l()\n \"\"\" Navigate to Network Page \"\"\"\n if not selenium2lib._is_element_present(FusionServerProfilesPage.ID_PAGE_LABEL):\n navigate()\n\n # get the list of networks\n ui_lib.wait_for_element(FusionServerProfi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Patches a Server Profile. [Arguments]
def fusion_api_patch_server_profile(self, body, uri, api=None, headers=None): return self.profile.patch(body, uri, api, headers)
[ "def fusion_api_edit_server_profile(self, body, uri, api=None, headers=None, param=''):\n return self.profile.update(body, uri, api, headers, param=param)", "def UpdateProfile(self, request, context):\n context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)", "def patch(self,\n tunn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the list of Ethernet networks, Fibre Channel networks and network sets that are available to a server profile along with their respective ports. [Arguments]
def fusion_api_get_server_profiles_available_networks(self, uri=None, param='', api=None, headers=None): param = '/available-networks%s' % param return self.profile.get(uri=uri, api=api, headers=headers, param=param)
[ "def network_list(ctx):\n networks = ctx.obj['CLIENT'].network.list()\n click.echo('Networks: %s' % [network.name for network in networks])", "def getNetworksList():\n logger.debug('Start.')\n code, res = rest_requests.get(networks_url)\n if code != requests.codes.ok:\n logger.error(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the list of the storage systems and their associated volumes that are available to the server profile based on the given server hardware type and enclosure group. [Arguments]
def fusion_api_get_server_profiles_available_storage_systems(self, uri=None, param='', api=None, headers=None): param = '/available-storage-systems%s' % param return self.profile.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_storage_providers_2(self, **kw):\n return (200, {}, {\"storage_provider\":\n {\n \"backend_type\": \"svc\",\n \"volume_count\": \"null\",\n \"service\": {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A server profile template object will be returned with the configuration based on this profile. [Arguments]
def fusion_api_get_server_profile_new_template(self, uri, api=None, headers=None): return self.profile.get(uri=uri, api=api, headers=headers, param="/new-profile-template")
[ "def fusion_api_create_server_profile_template(self, body, api=None, headers=None):\n return self.profile_template.create(body, api, headers)", "def _command_config_template(args):\n\n # Resolve dependencies\n providers_manager = ProvidersManager()\n\n # Create profile based on eve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Server Profile Template. [Arguments]
def fusion_api_create_server_profile_template(self, body, api=None, headers=None): return self.profile_template.create(body, api, headers)
[ "def create_server_profile_template(profile_template_obj):\n FusionUIBase.navigate_to_section(SectionType.SERVER_PROFILE_TEMPLATES, time_for_loading=5)\n\n total = len(profile_template_obj)\n created = 0\n already_exists = 0\n\n for n, profile_template in enumerate(profile_template_obj):\n log...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Server Profile Template. [Arguments]
def fusion_api_edit_server_profile_template(self, body, uri, api=None, headers=None): return self.profile_template.update(body, uri, api, headers)
[ "def edit_server_profile_template(profile_template_obj):\n FusionUIBase.navigate_to_section(SectionType.SERVER_PROFILE_TEMPLATES, time_for_loading=5)\n\n total = len(profile_template_obj)\n not_exists = 0\n edited = 0\n\n for n, profile_template in enumerate(profile_template_obj):\n logger.inf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes server profile templates bulk based on name OR uri. If name AND uri are omitted, ALL templates are deleted. [Arguments]
def fusion_api_delete_server_profile_template(self, name=None, uri=None, api=None, headers=None): return self.profile_template.delete(name, uri, api, headers)
[ "def delete_all_appliance_server_profile_templates():\n FusionUIBase.navigate_to_section(SectionType.SERVER_PROFILE_TEMPLATES, time_for_loading=5)\n profile_template_name_list = CommonOperationServerProfileTemplate.get_server_profile_template_list()\n\n total = len(profile_template_name_list)\n not_exis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of Server Profile Templates. [Arguments]
def fusion_api_get_server_profile_templates(self, uri=None, param='', api=None, headers=None): return self.profile_template.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_templates(self):\n return self.http_call(\"get\", url=f\"{self.base_url}/templates\").json()", "def list_provisioning_templates(maxResults=None, nextToken=None):\n pass", "def get_templates(self):\n return self.templates.all()", "def policy_templates_get_all():\n response = MongoP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of storage Pools. [Arguments]
def fusion_api_get_storage_pools(self, uri=None, param='', api=None, headers=None): return self.pool.get(uri=uri, api=api, headers=headers, param=param)
[ "def _get_pools():\n conn = libvirt.open(None)\n try:\n _spsfs = list()\n _spsnetfs = list()\n if conn:\n # file system pool\n _spsfs = conn.listAllStoragePools(flags=128)\n # nfs pool\n _spsnetfs = conn.listAllStoragePools(flags=256)\n e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes storage pool based on name OR uri. [Arguments]
def fusion_api_delete_storage_pool(self, uri=None, api=None, headers=None): return self.pool.delete(uri=uri, api=api, headers=headers)
[ "def storage_pool_delete_by_storage(context, storage_id):\n _storage_pool_get_query(context).filter_by(storage_id=storage_id).delete()", "def deleteStoragePool(self, name):\n try:\n storagePool = self.connection.storagePoolLookupByName(name)\n\n if not storagePool.isActive():\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a collection of Storage systems. [Arguments]
def fusion_api_get_storage_system(self, uri=None, param='', api=None, headers=None): return self.system.get(uri=uri, api=api, headers=headers, param=param)
[ "def find_all():\n return ItopapiPrototype.find_all(ItopapiStorageSystem)", "def get_system_storage(self):\n result = {}\n try:\n # Find ComputerSystem resource's url\n system_url = self._find_system_resource()\n\n # Get the Processors collection\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a storage system [Arguments]
def fusion_api_create_storage_system(self, body, api=None, headers=None): return self.system.create(body=body, api=api, headers=headers)
[ "def create_system(self):\n pass", "def create_file_system(ClientRequestToken=None, FileSystemType=None, StorageCapacity=None, SubnetIds=None, SecurityGroupIds=None, Tags=None, KmsKeyId=None, WindowsConfiguration=None, LustreConfiguration=None):\n pass", "def create_system(sys_structure):\n pass", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a storage system [Arguments]
def fusion_api_update_storage_system(self, body, uri, api=None, headers=None): return self.system.update(body=body, uri=uri, api=api, headers=headers)
[ "def update_system(self, system):\n try:\n rc, storage_system = self.request(\"storage-systems/%s\" % system[\"ssid\"], method=\"POST\", data=system[\"changes\"])\n except Exception as error:\n self.module.warn(\"Failed to update storage system. Array [%s]. Error [%s]\" % (system...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes storage systems based on name OR uri. [Arguments]
def fusion_api_delete_storage_system(self, uri=None, api=None, headers=None): return self.system.delete(uri=uri, api=api, headers=headers)
[ "def deleteStoragePool(self, name):\n try:\n storagePool = self.connection.storagePoolLookupByName(name)\n\n if not storagePool.isActive():\n storagePool.create()\n\n storageVolumes = storagePool.listAllVolumes()\n for storageVolume in storageVolumes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns Reachable Ports of Specified Storage System [Arguments]
def fusion_api_storage_system_get_reachable_ports(self, uri=None, param='', api=None, headers=None): return self.system.get_reachable_ports(uri=uri, api=api, headers=headers, param=param)
[ "def read_all_ram_ports(self):\n return self.RAM_PORT", "def port_list(self):\n return ['1']", "def ports(self):\n return self._request('/shodan/ports', {})", "def list_occupied_adb_ports():\n out = AdbProxy().forward('--list')\n clean_lines = str(out, 'utf-8').strip().split('\\n')\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns Templates of Specified Storage System [Arguments]
def fusion_api_storage_system_get_templates(self, uri=None, param='', api=None, headers=None): return self.system.get_templates(uri=uri, api=api, headers=headers, param=param)
[ "def getTemplates(**query):\n\n docList = Simulations.getDocuments(projectName=DEFAULTPROJET , type=DOCTYPE_TEMPLATE , **query)\n return [LSMTemplate(doc) for doc in docList]", "def fusion_api_get_storage_volumes_template(self, uri=None, param='', api=None, headers=None):\n return self.template.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Createsa storage volume template [Arguments]
def fusion_api_create_storage_volume_template(self, body, api=None, headers=None): return self.template.create(body=body, api=api, headers=headers)
[ "def volume_create(**kwargs):\n return create_volume(kwargs, \"function\")", "def do_create_volume(self, arg):\n args = self.parse_arguments(arg)\n if len(args) == 0:\n self.perror(\"No name given.\")\n return\n if len(args) == 1:\n self.perror(\"No path gi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Edits a storage volume template [Arguments]
def fusion_api_edit_storage_volume_template(self, body, uri, api=None, headers=None): return self.template.update(body=body, uri=uri, api=api, headers=headers)
[ "def edit(self, connection_id, arguments, template):\n context = self.context\n self.connection_id = str(connection_id)\n arguments = str(arguments)\n self.arguments_src = arguments\n self._arg = Aqueduct.parse(arguments)\n if not isinstance(template, (str, unicode)):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a collection of Storage Volumes template. [Arguments]
def fusion_api_get_storage_volumes_template(self, uri=None, param='', api=None, headers=None): return self.template.get(uri=uri, api=api, headers=headers, param=param)
[ "def volumes(self, uri, pool, type=None):\n\t\treturn protocol.Request_STORAGE_VOLUMES(uri=uri, pool=pool, type=type)", "def fusion_api_get_storage_volumes(self, uri=None, param='', api=None, headers=None):\n return self.volume.get(uri=uri, api=api, headers=headers, param=param)", "def data_volume_te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes storage volumes template based on name OR uri. [Arguments]
def fusion_api_delete_storage_volume_template(self, name=None, uri=None, api=None, headers=None): return self.template.delete(name=name, uri=uri, api=api, headers=headers)
[ "def delete_provisioning_template(templateName=None):\n pass", "def fusion_api_delete_storage_volume(self, name=None, uri=None, param='', api=None, headers=None):\n return self.volume.delete(name=name, uri=uri, param=param, api=api, headers=headers)", "def delete_template(self, name):\n sel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update storage volume [Arguments]
def fusion_api_update_storage_volume(self, body, uri, api=None, headers=None): return self.volume.update(body=body, uri=uri, api=api, headers=headers)
[ "def update_volume(VolumeId=None, Name=None, MountPoint=None):\n pass", "def update_volume( opencloud_volume ):\n\n client = connect_syndicate()\n\n vol_name = opencloud_volume.name\n vol_description = opencloud_volume.description\n vol_private = opencloud_volume.private\n vol_archive = openclou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a collection of Storage Volumes. [Arguments]
def fusion_api_get_storage_volumes(self, uri=None, param='', api=None, headers=None): return self.volume.get(uri=uri, api=api, headers=headers, param=param)
[ "def volumes(self, uri, pool, type=None):\n\t\treturn protocol.Request_STORAGE_VOLUMES(uri=uri, pool=pool, type=type)", "def get_volumes(self):\n url = self._get_url() + 'volumes'\n volumes = self._request(url)\n return volumes.json()", "def list_volumes(self):\n print '# Listing exi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes storage volumes based on name OR uri. [Arguments]
def fusion_api_delete_storage_volume(self, name=None, uri=None, param='', api=None, headers=None): return self.volume.delete(name=name, uri=uri, param=param, api=api, headers=headers)
[ "def delete_volumes(volumes):\n if type(volumes) is not list:\n volumes = [volumes]\n for volume in volumes:\n command = 'cinder delete %s' % volume['id']\n a = Popen(command.split(), stdout=STDOUT, stderr=STDERR).communicate()[0]", "def volume_delete(volume: str) -> Result:\n arg_li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }