Publish ads IPsets created on a scope through the REST API

I am able to create a FPS on a range of data center as follows:

POST https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

< ipset(8) >

< objectId / >

< type >

< typeName / >

< / type >

< description > new Description < / description >

< name > TestIPSet2 < / name >

< revision > 0 < / revision >

< objectTypeName / >

< value > 10.112.201.8 - 10.112.201.14 < / value >

< / ipset(8) >

that gives me id is:

FPS-205

I can successfully query this FPS directly with:

GET https://192.168.x.x/api/2.0/services/ipset/ipset-205

< ipsetipset >

< objectId > FPS-205 < / objectId >

< type >

< typeName > Ipset(8) < / typeName >

< / type >

< name > TestIPSet2 < / name >

< description > new Description < / description >

< revision > 1 < / revision >

< objectTypeName > Ipset(8) < / objectTypeName >

< scope >

< id > datacenter-xx / < ID >

< objectTypeName > data center < / objectTypeName >

XXXXX < name > < / name >

< / scope >

< extendedAttributes / >

< inheritanceAllowed > false < / inheritanceAllowed >

< value > 10.112.201.8 - 10.112.201.14 < / value >

< / ipset(8) >

However, if I try to enumerate all IPsets on the scope of data center-xx, I get an error:

GET https://192.168.x.x/api/2.0/services/ipset/datacenter-xx

https://192.168.x.x/API/2.0/services/IPSET/Datacenter-XX

https://192.168.x.x/API/2.0/services/IPSET/IPSET-205

< error >

<>details requested object: data center-xx could not be found. Object identifiers are case sensitive. < / details >

< > 202 errorCode < / errorCode >

< moduleName > - basic services < / moduleName >

< / error >

Any ideas? Surely the datacenter-xx must exist because I have successfully created a FPS on that?

Figured it out. The URL in the documentation is incorrect, that you actually need is:

https://192.168.x.x/API/2.0/services/IPSET/scope/Datacenter-XX

that is, it lacks the /scope

Once added to the request is so successful

Tags: VMware

Similar Questions

  • Add vNIC PortGroup scope with the REST API security group

    I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.

    To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.

    AddvNICToSecurityGroup.PNG

    To add it via the REST API, I need to provide the following:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >

    for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.

    If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:

    < securitygroup >

    < objectIdobjectId > securitygroup-xx < / objectId >

    < type >

    < typeName > SecurityGroup < / typeName >

    < / type >

    < name > JMTest7 < / name >

    < description / >

    < revision > 9 < / revision >

    < objectTypeName > SecurityGroup < / objectTypeName >

    < scope >

    < id > dvportgroup-xxxxx / < ID >

    < objectTypeName > DistributedVirtualPortgroup < / objectTypeName >

    < name > dv-xxxxx < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < member >

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    < type >

    Vnic < typeName > < / typeName >

    < / type >

    < name > JMTest1 - NIC 1 < / name >

    < revision > 6 < / revision >

    < objectTypeName > Vnic < / objectTypeName >

    < scope >

    < id > vm-xxxxx / < ID >

    < objectTypeName > VirtualMachine < / objectTypeName >

    < name > JMTest1 < / name >

    < / scope >

    < extendedAttributes / >

    < / member >

    < / securitygroup >

    It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >

    If I run now:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/500758f6-b97b-7a79-0c04-996f53edf3f0.000

    then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    of a vNIC?

    I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.

    Anyone know the answer to that?

    The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key.  (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).

  • How a VAPP user could get the Info org-network through the REST API?

    Hi all

    I can get the org-network when I use the system administrator use the REST url "/ api/org", but when I use a VAPP user, may not work properly.

    Then I try to config user VAPP role permission and give him the permition operating organization. The answer is STILL no network-org Info too

    What should I do?

    Respect of

    Hello

    VAPP users are not allowed to see the org above their visibility networks. They are allowed to see the networks VAPP.
    Org networks are visible to the user 'administrator of the Organization ". If you want you can see the permissions of the role "Administrator of the Organization" and create role with the org network of related rights, which will be tailored to your needs. You can also change the role of 'paralytic' adding rights for ' Org networks-> view/edit properties "and"organization-> view organization networks. This can be done as easily in the user interface of vCD.
  • How to pass the elqCustomerGUID as well as data of form through the rest API?

    Hey everybody,

    We have our own installer of forms on our front-end server.  We take this data with the basting eloqua (elqCustomerGUID) id and pass it on to our backend.  We then use the Eloqua Rest API to send the form data to Eloqua.  The problem is that I can not understand how to properly send the elqCustomerGUID so that it binds a contact to the the ID.  Need this to display the tracking page to work.

    According to the data of the shipment, it works perfectly - map us the values of their corresponding form ID field and send it.

    Any help would be appreciated!

    Thank you

    Chris

    I just finished using the CURL approach to imitate the real form post that Eloqua uses.  If you look at the html code of the form, you can see the fields, it took:

    elqFormName, elqCustomerGUID, elqCookieWrite, elqSiteID

    and then the htmlNames in any other field that the form is intended.

    If you post all what to "http://s«.$elqSiteID.".t.eloqua.com/e/f2 "in a tone of param query normal-online configuration of the value, it will count as if you clicked on submit on the real shape."

    Hope that helps! If you have any questions just shoot me a message.

  • How to import plugin VCO through the REST API

    I try to import plugin VCO via customer REST VCO, it always by listed below error

    Exception in thread "main" org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error

    at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:92)

    at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:494)

    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:451)

    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:423)

    at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:328)

    at com.vmware.o11n.sdk.rest.client.services.PluginService.importPlugin(PluginService.java:65)

    at com.vmware.o11n.sdk.rest.client.services.PluginService.importPluginFromFile(PluginService.java:53)

    at FileUploadAdv100.uploadVCOPluginsList (FileUploadAdv100.java:53)

    at FileUploadAdv100.main (FileUploadAdv100.java:26)

    My code is here

    File pluginFile = new File("D:\\vcoplugins\\JAVARESTSDK_Examples\\o11nplugin-powershell-1.0.1.vmoapp");
    Boolean overwrite = false;
    SessionFactory VcoSessionFactory = createSessionFactory();
    Authentication auth = createAuthentication (sessionFactory);
    Session VcoSession = sessionFactory.newSession (auth);
    PluginService pluginService = new PluginService (session);
    pluginService.importPluginFromFile (pluginFile, overwrite);

    Concerning
    APR

    Hi APR,.

    PluginService.importPluginFromFile () supports only import plug-ins of .dar files, not files .vmoapp.

    The good news is that you can extract the .dar file is the .vmoapp file. Simply open the file .vmoapp with a program that can open. ZIP archives (like WinRar, WinZip, 7-zip, etc.) and check out the .dar file. Then change your code to pass the path to the file .dar (the first line of your code).

    Another option would be to try PluginService.importApplicationFromFile (), which should support the import of .vmoapp files.

    Hope this helps,

    -Ilian

  • Input values default settings for a workflow run through the REST interface

    Can someone give me an overview here, I have a workflow configuration that takes a series of input parameters, most of the time the default values (defined through the presentation tab) are correct, so I hope not not to be specified in each request only on exception

    How can I call the workflow to execute with other api provides only the settings I have and leave the value default those to do their job?

    There is a REST API for presentation and execution of workflow.

    So, you can use presentation REST API to create/update presentation running, providing only the necessary parameters. As a result of these API calls, you will get the values for all time settings (those you passed to the call) and those calculated by your presentation logic. Then, you can call the REST API by passing all values returned by presentation REST API for the execution of workflow.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • Error in creating a category with the REST API

    vRO 7.0.1

    I am trying to create a category in the folder root of Workflow using the REST API.

    URL = https://vroserver.fqdn:8281 / vco/api/categories

    Method = POST

    The API documentation suggests that the body should be like this:

    {

    "categoryType": "WorkflowCategory",

    'name': "Test5",.

    'description': 'Testing '.

    }

    However, I always get a 400 response: the request sent by the client is syntactically incorrect.

    reflecting the docs by: category name must be specified

    Can anyone help?

    Body of the request should be:

    {
       "type":"WorkflowCategory",
       "name":"Test5",
       "description":"Testing"
    }
    
  • QUESTION: Can't create a firewall rule to (edge) with the REST API

    Dear Sir

    I am trying to create a firewall rule for simple and basic edge using the REST API.

    I use the REST API guide as a reference on page 158.


    edge-fw-rule.png

    I use the following code (single) in my client REST API (with good content Type (application/xml)):

    < rule >

    < ruleTag > < / ruleTag >

    < name > edge5-rest-rule < / name >

    all < source > < / source >

    < destination > all < / destination >

    < application > all < / application >

    < matchTranslated > true < / matchTranslated >

    < management > in < / direction >

    < action > deny < / action >

    < enabled > false < / enabled >

    < loggingEnabled > true < / loggingEnabled >

    rest-api-rule of the < description > < / description >

    < / rule >

    The error message that I receive is the following:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < error >

    request details invalid <>. Found no match for item rule. < / details >

    < > 223 errorCode < / errorCode >

    < / error >

    The full screenshot of my action REST API is in the screenshot below:

    full-request.png

    Anyone know what I'm doing wrong here?

    Thank you!

    Try this as the body...

    rest-rule

    user

    true

    in

    deny

    fake

    true

    rest-api-rule

  • Rental of storage of a configuration library through the SOAP API implementation?

    How I put the "storage lease" and "VM fencing policy" a configuration of library through the SOAP API call?

    Thanks for the help...

    Sorry, these methods are in the Lab Manager 4...

  • How to create a Global Variable through the Project Explorer

    Hello world!

    I know how to create a global variable (in a vi through the range of functions...).

    but I'm missing a way to create one via the Project Explorer.

    It's a missing feature or just this documentation (and the intuition of myself) are missing?

    It would be very convenient.

    THX for your time and hope that answers.

    jwscs

    Right click on my computer > new > new... > select Global Variable.

    EDIT: although I agree with Gerd (he probably wondering why you need so we can recommend a better way ), I rarely use them in easy to write once - read many applications such as security levels overall program at initialization (VER) to read later, but NOT modified.  I know it would be better to make a good class, functional Global Variable (FGV) or a motor Action (AE) but globals ARE practical and safe IF used wisely.

  • What happened when I stop paying the Muse? I can manage the Web site created with this program through the Adobe Muse even when I'm not paying creative cloud?

    For now, I need to create just one site, that is why, I think I'll use Adobe Muse for a month, or maybe two. But my question is that if, after I have finished creating this site and do not pay more time creative cloud, I'll be able to administer the webside whith the same Adobe Muse, although I won't be in this community.

    Thank you very much

    Hello

    I suggest you see this post what will happen to my sites to Muse if I cancel my CC subscription? where the same has been discussed and clarified in detail.

    Kind regards

    _Ankush

  • A split screen device would hold the part of the static web page and allow you to scroll through the rest, it is possible?

    I would like to be able to hold part of a static web page while scrolling down, more often if you follow a tutorial on the screen for setting something with 8.1, (unusual).
    This feature would be similar to what office programs such as excel.
    Is it feasible, or if I should open the same web page in several windows?

    See if it still works.
    https://addons.Mozilla.org/en-us/Firefox/addon/split-pannel/

  • Searching for a contact through GUID on the REST API

    After talking to some of the developers at Vidyard, it was obvious that there is a way that eloqua could really help us!


    If taken Eloqua supported a way of searching for a contact based on the GUID of the cookie in the REST API, we could stop using the SOAP API in total. I wanted to just start a thread to see if anyone is looking for this feature? Any ideas would be appreciated!


    CC TJ fields-Oracle

    Hey Ian, is currently our roadmap.  No ETA at this time.

  • Is there a way to recover the use of storage for a specific org through the vCloud API RESTful vdc?


    Hello - I hope someone can tell me how to recover the amount of storage used against an assignment given to a specific VCC in the goal.  I use storage profiles in my environment and when I retrieve the details of an org vDC by AGAINST... api / / admin/vdc / < OID >, I think the result is a block with hrefs VdcstorageProfiles I can do more gets against for details on provisioned storage profiles.  However the results of these becomes later contain just a 'Limit' tag in the XML file that indicates the amount of the allowance, but still no details on usage.  The initial GET against the vDC shows its use against the allocation of memory and cpu, and I was looking to find a similar result for storage.

    Thank you!

    Nevermind, I just have this one resolved, everything necessary for the query / api /? type = adminOrgVdcStorageProfile & filter = vdcName is XXXX

Maybe you are looking for

  • Netflix has stopped working on sony bdp-s390

    I was usin netflix on my Sony BDP-S390 fine for the last six months. And now all of a sudden it stopped working. Yesterday. I tried to reset the player, clear the netfilx app, update the firmware. And nothing seems to work. I even found a message on

  • Liked my photosmart will not print.

    My photosmart liked won't print Microsoft Word Starter 2010 on Windows 7. Screen freezes; printer is "ready". Sometimes, it prints a pdf file...

  • Windows Media Player - looks like Mickey Mouse

    Hello When I play the CD on my computer, looks like Mickey Mouse, the speed is normal? When I burn on a music CD and play on my MP3 player the sound is correct? Any help much appreciated. Kind regards Sue Gaffney

  • Can I use my Windows OEM product key on more than pc?

    Windows 7 OEM on two computers Hi, I recently built a computer and I bought a copy of windows 7 64 bit OEM OEM. I use it of course on the new computer, but I have a desktop HP with Windows 7 64 bit OEM on it too, I need to reinstall windows on the HP

  • Windows 7 additional license

    HI - how can I purchase another license for Windows 7? I bought the upgrade to Windows 7 Professional and installed on my laptop. Now I want to install it on my desktop as well, but need to buy another license (this is getting expensive!). Can you pl