Knowledge Base

Ask A Question

Questions

13

Using the new RESTful API v3

I am using Alteryx to delete assets that I group using dynamic asset groups. I have a workflow in Alteryx where you just have to change the asset group IDs in the first step and let it run. I do not know if we can do attachments so here is the XML. If you have Alteryx, just save it as a .yxmd file. ```xml <?xml version="1.0"?> <AlteryxDocument yxmdVer="11.7"> <Nodes> <Node ToolID="5"> <GuiSettings Plugin="AlteryxBasePluginsGui.TextInput.TextInput"> <Position x="54" y="126" /> </GuiSettings> <Properties> <Configuration> <NumRows value="2" /> <Fields> <Field name="url" /> </Fields> <Data> <r> <c>https://nexposeconsole:3780/api/3/asset_groups/74/assets</c> </r> <r> <c>https://nexposeconsole:3780/api/3/asset_groups/75/assets</c> </r> </Data> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxTextInput" /> </Node> <Node ToolID="6"> <GuiSettings Plugin="AlteryxConnectorGui.Download.Download"> <Position x="162" y="126" /> </GuiSettings> <Properties> <Configuration> <URLField>url</URLField> <OutputMode>String</OutputMode> <CodePage>65001</CodePage> <EncodeURLs value="True" /> <Headers> <NameValues> <Item name="Authorization" value="Basic NzAwNjc6b2tvbzNvaFc=" /> </NameValues> <Fields orderChanged="False"> <Field name="url" selected="False" /> <Field name="*Unknown" selected="False" /> </Fields> </Headers> <Payload> <HTTPAction>GET</HTTPAction> <QueryStringBodyMode>Compose</QueryStringBodyMode> <ComposeNameValues /> <ComposeFields orderChanged="False"> <Field name="url" /> <Field name="*Unknown" selected="False" /> </ComposeFields> </Payload> <UserName /> <Password /> <numConnections>2</numConnections> <Timeout>600</Timeout> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxConnectorEngine.dll" EngineDllEntryPoint="AlteryxDownload" /> </Node> <Node ToolID="8"> <GuiSettings Plugin="AlteryxBasePluginsGui.JSONParse.JSONParse"> <Position x="282" y="126" /> </GuiSettings> <Properties> <Configuration> <JSON_Field>DownloadData</JSON_Field> <IncludeInOutput value="False" /> <SingleField value="True" /> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxJSONParse" /> </Node> <Node ToolID="9"> <GuiSettings Plugin="AlteryxBasePluginsGui.Filter.Filter"> <Position x="390" y="126" /> </GuiSettings> <Properties> <Configuration> <Expression>Contains([JSON_Name],"links") AND Contains([JSON_Name],"id")</Expression> <Mode>Custom</Mode> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText>Contains([JSON_Name],"links") AND Contains([JSON_Name],"id")</DefaultAnnotationText> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxFilter" /> </Node> <Node ToolID="10"> <GuiSettings Plugin="AlteryxBasePluginsGui.TextInput.TextInput"> <Position x="390" y="54" /> </GuiSettings> <Properties> <Configuration> <NumRows value="1" /> <Fields> <Field name="url" /> </Fields> <Data> <r> <c>https://nexposeconsole:3780/api/3/assets/</c> </r> </Data> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxTextInput" /> </Node> <Node ToolID="14"> <GuiSettings Plugin="AlteryxBasePluginsGui.AlteryxSelect.AlteryxSelect"> <Position x="486" y="114" /> </GuiSettings> <Properties> <Configuration> <OrderChanged value="False" /> <CommaDecimal value="False" /> <SelectFields> <SelectField field="JSON_ValueString" selected="True" /> <SelectField field="*Unknown" selected="False" /> </SelectFields> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxSelect" /> </Node> <Node ToolID="15"> <GuiSettings Plugin="AlteryxBasePluginsGui.AppendFields.AppendFields"> <Position x="618" y="102" /> </GuiSettings> <Properties> <Configuration> <CartesianMode>Allow</CartesianMode> <SelectConfiguration> <Configuration outputConnection="Output"> <OrderChanged value="False" /> <CommaDecimal value="False" /> <SelectFields> <SelectField field="Target_url" selected="True" type="V_WString" size="128" /> <SelectField field="Source_JSON_ValueString" selected="True" rename="id" /> <SelectField field="*Unknown" selected="True" /> </SelectFields> </Configuration> </SelectConfiguration> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxAppendFields" /> </Node> <Node ToolID="17"> <GuiSettings Plugin="AlteryxBasePluginsGui.Formula.Formula"> <Position x="714" y="102" /> </GuiSettings> <Properties> <Configuration> <FormulaFields> <FormulaField expression="[url] + [id]" field="url" size="128" type="V_WString" /> </FormulaFields> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText><![CDATA[url = [url] + [id] ]]></DefaultAnnotationText> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxFormula" /> </Node> <Node ToolID="18"> <GuiSettings Plugin="AlteryxBasePluginsGui.AlteryxSelect.AlteryxSelect"> <Position x="798" y="102" /> </GuiSettings> <Properties> <Configuration> <OrderChanged value="False" /> <CommaDecimal value="False" /> <SelectFields> <SelectField field="id" selected="False" /> <SelectField field="*Unknown" selected="True" /> </SelectFields> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxSelect" /> </Node> <Node ToolID="19"> <GuiSettings Plugin="AlteryxConnectorGui.Download.Download"> <Position x="906" y="102" /> </GuiSettings> <Properties> <Configuration> <URLField>url</URLField> <OutputMode>String</OutputMode> <CodePage>65001</CodePage> <EncodeURLs value="True" /> <Headers> <NameValues> <Item name="Authorization" value="Basic NzAwNjc6b2tvbzNvaFc=" /> </NameValues> <Fields orderChanged="False"> <Field name="url" selected="False" /> <Field name="*Unknown" selected="False" /> </Fields> </Headers> <Payload> <HTTPAction>DELETE</HTTPAction> <QueryStringBodyMode>Compose</QueryStringBodyMode> <ComposeNameValues /> <ComposeFields orderChanged="False"> <Field name="url" /> <Field name="*Unknown" selected="False" /> </ComposeFields> </Payload> <UserName /> <Password /> <numConnections>32</numConnections> <Timeout>1800</Timeout> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxConnectorEngine.dll" EngineDllEntryPoint="AlteryxDownload" /> </Node> <Node ToolID="20"> <GuiSettings Plugin="AlteryxBasePluginsGui.BrowseV2.BrowseV2"> <Position x="1002" y="102" /> </GuiSettings> <Properties> <Configuration> <TempFile>C:\Users\70067\AppData\Local\Temp\Engine_12420_d4696e9d270645cc83b4a594da21ebc4_\Engine_8880_a37de90efc084fb08e51d01450242f6d_.yxdb</TempFile> <TempFileDataProfiling /> <Layout> <ViewMode>Single</ViewMode> <ViewSize value="100" /> <View1> <DefaultTab>Profile</DefaultTab> <Hints> <Table /> </Hints> </View1> <View2 /> </Layout> </Configuration> <Annotation DisplayMode="0"> <Name /> <DefaultAnnotationText /> <Left value="False" /> </Annotation> </Properties> <EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxBrowseV2" /> </Node> </Nodes> <Connections> <Connection> <Origin ToolID="5" Connection="Output" /> <Destination ToolID="6" Connection="Input" /> </Connection> <Connection> <Origin ToolID="6" Connection="Output" /> <Destination ToolID="8" Connection="Input" /> </Connection> <Connection> <Origin ToolID="8" Connection="Output" /> <Destination ToolID="9" Connection="Input" /> </Connection> <Connection> <Origin ToolID="9" Connection="True" /> <Destination ToolID="14" Connection="Input" /> </Connection> <Connection> <Origin ToolID="10" Connection="Output" /> <Destination ToolID="15" Connection="Targets" /> </Connection> <Connection> <Origin ToolID="14" Connection="Output" /> <Destination ToolID="15" Connection="Source" /> </Connection> <Connection> <Origin ToolID="15" Connection="Output" /> <Destination ToolID="17" Connection="Input" /> </Connection> <Connection> <Origin ToolID="17" Connection="Output" /> <Destination ToolID="18" Connection="Input" /> </Connection> <Connection> <Origin ToolID="18" Connection="Output" /> <Destination ToolID="19" Connection="Input" /> </Connection> <Connection> <Origin ToolID="19" Connection="Output" /> <Destination ToolID="20" Connection="Input" /> </Connection> </Connections> <Properties> <Memory default="True" /> <GlobalRecordLimit value="0" /> <TempFiles default="True" /> <Annotation on="True" includeToolName="False" /> <ConvErrorLimit value="10" /> <ConvErrorLimit_Stop value="False" /> <CancelOnError value="False" /> <DisableBrowse value="False" /> <EnablePerformanceProfiling value="False" /> <DisableAllOutput value="False" /> <ShowAllMacroMessages value="False" /> <ShowConnectionStatusIsOn value="True" /> <ShowConnectionStatusOnlyWhenRunning value="True" /> <ZoomLevel value="0" /> <LayoutType>Horizontal</LayoutType> <MetaInfo> <NameIsFileName value="True" /> <Name>Delete Assets in Asset Group</Name> <Description /> <RootToolName /> <ToolVersion /> <ToolInDb value="False" /> <CategoryName /> <SearchTags /> <Author /> <Company /> <Copyright /> <DescriptionLink actual="" displayed="" /> <Example> <Description /> <File /> </Example> </MetaInfo> <Events> <Enabled value="True" /> </Events> </Properties> </AlteryxDocument>

Posted by Jasey DePriest about a year ago

1

Scan Problem

Hi, I have a problem with Nexpose. When i want to do a scan (On a site or just on a IP), i have an error : Scan action failed : java.lang.runtimeexception : Error while parsing apple-safari-cve-2017-13866.xml. When i come back to the welcome page of my software, i can see that the scan is running but detect anything. In order to stop the scan i have to reboot the computer where nexpose is installed. Below you can find an extract of the nsc.log : 2018-01-09T23:02:07 [ERROR] [Thread: Scheduled Execution Thread: Daily History Updater [SiloID: default]DailyHistoryJob-default|RiskUpdateJob-default|DailyAssetGroupUpdateJob-default] Entry debian-upgrade-openjdk-8.sol not found in C:\Program Files\rapid7\nexpose\plugins\java\1\DebianDEBScanner\1\solns.jar. Please update to the latest product version. 2018-01-09T23:02:07 [ERROR] [Thread: Scheduled Execution Thread: Daily History Updater [SiloID: default]DailyHistoryJob-default|RiskUpdateJob-default|DailyAssetGroupUpdateJob-default] debian-upgrade-openjdk-8.sol not found. Please update to the latest product version. 2018-01-09T23:02:07 [ERROR] [Thread: Scheduled Execution Thread: Daily History Updater [SiloID: default]DailyHistoryJob-default|RiskUpdateJob-default|DailyAssetGroupUpdateJob-default] Unable to execute scheduled job. For you information i have the last version of Nexpose (Version 6.4.67,Edition Enterprise). Can you help me please ? Thanks in advance. Regards Olivier DONDEYNE +33 5 57 10 95 02

Posted by Olivier Dondeyne about a year ago