acdp.admin and acdp.password

I am using my cridentials for acdp.admin and acdp.password but it throws excaption

com.emc.esu.api.EsuException: Resource /cdp-rest/v1/admin/login does not exist.

    at com.emc.acdp.api.request.AdminLoginRequest.parseError(AdminLoginRequest.java:137)

    at com.emc.acdp.api.request.AdminLoginRequest.parseError(AdminLoginRequest.java:1)

    at com.emc.acdp.api.request.AcdpRequest.call(AcdpRequest.java:268)

    at com.emc.acdp.api.impl.AcdpAdminApiClient.execute(AcdpAdminApiClient.java:143)

    at com.emc.acdp.api.impl.AcdpAdminApiClient.adminLogin(AcdpAdminApiClient.java:86)

    at com.emc.acdp.api.test.AccountTest.testCreateDeleteAccount(AccountTest.java:109)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)

    at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)

    at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)

    at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)

    at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)

    at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)

    at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)

    at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)

    at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)

    at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)

    at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)

    at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)

    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)

    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Please can you help me which vaules should I set for acdp.admin and acdp.password ?

0 Kudos
6 Replies
Highlighted
JasonCwik
2 Iron

Re: acdp.admin and acdp.password

This error generallymens that you're pointing at the wrong server.  The Admin API is only available through port 8080 on your authentication node.

Re: acdp.admin and acdp.password

Thanks, but when I try to set

acdp.admin.endpoint=http://accesspoint.emccis.com:8080

acdp.admin=.....

acdp.admin.password=.....

I get the error "com.emc.esu.api.EsuException: Error in execute: java.net.ConnectException: Connection timed out

    at com.emc.acdp.api.impl.AcdpAdminApiClient.execute(AcdpAdminApiClient.java:159)

    at com.emc.acdp.api.impl.AcdpAdminApiClient.adminLogin(AcdpAdminApiClient.java:86)

    at com.emc.acdp.api.test.AdminLoginTest.testAdminLogin(AdminLoginTest.java:87)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)

    at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)

    at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)

    at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)

    at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)

    at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)

    at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)

    at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)

    at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)

    at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)

    at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)

    at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)

    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Caused by: java.net.ConnectException: Connection timed out

    at java.net.PlainSocketImpl.socketConnect(Native Method)

    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)

    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)

    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

    at java.net.Socket.connect(Socket.java:529)

    at java.net.Socket.connect(Socket.java:478)

    at sun.net.NetworkClient.doConnect(NetworkClient.java:163)

    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

    at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)

    at sun.net.www.http.HttpClient.New(HttpClient.java:306)

    at sun.net.www.http.HttpClient.New(HttpClient.java:323)

    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)

    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)

    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)

    at com.emc.acdp.api.request.AcdpRequest.executeRequest(AcdpRequest.java:232)

    at com.emc.acdp.api.request.AcdpRequest.call(AcdpRequest.java:264)

    at com.emc.acdp.api.impl.AcdpAdminApiClient.execute(AcdpAdminApiClient.java:143)

    ... 24 more

0 Kudos
JasonCwik
2 Iron

Re: acdp.admin and acdp.password

Ah, I see what's happening.

The "/cdp-rest/v1/admin/" API is not available publicly on atmosonline since it implements admin-level functions to ALL subtenants.

What you need is the "user" level API.  I have not implemented this in Java yet, but it should be fairly straightforward.  If you copy the "request" objects (e.g. copy AdminLoginRequest to UserLoginRequest) and change the URLs to not include "/admin/", you will switch to the "user" API that only grants access to your account's objects.

0 Kudos

Re: acdp.admin and acdp.password

I trying to create account in atmos via my application. Is this possible?

0 Kudos
JasonCwik
2 Iron

Re: acdp.admin and acdp.password

Not directly.  Can you send me a PM with your email address?  I'd like to discuss your application.  While atmosonline exists for developers to build and test applications, it is not meant for production use in applications.

0 Kudos

Re: acdp.admin and acdp.password

my email is lusinet@boomerang.am

we can discuss my application since 12 PM

0 Kudos