ERROR!
------------------- GenerateCode ----------------------
---- begin chilkat script ----
// This example assumes the Chilkat API to have been previously unlocked.
// See {{-global_unlock:::Global Unlock Sample-}} for sample code.
new Http http;
ckbool success;
http.DigestAuth = cktrue;
http.Login = "username";
http.Password = "password";
new StringBuilder sbResponseBody;
success = http.QuickGetSb("https://domain.com/api/atlas/{{version}}/groups/{{ProjectID}}/accessList/{{ACCESS-LIST-ENTRY}}",sbResponseBody);
if (success == ckfalse) {
println http.LastErrorText;
return;
}
println "Response status code = ",http.LastStatus;
println sbResponseBody.GetAsString();
---- end chilkat script ----
Java / MongoDB Atlas / Get Single Project IP Access List Entry
Back to Collection Items
import com.chilkatsoft.*;
public class ChilkatExample {
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHttp http = new CkHttp();
boolean success;
ERROR: Property not found: Http.DigestAuth
Assignment type mismatch. ExpressionType=ckbool, atgType=ERROR:
ERROR: Property not found: Http.Login
Assignment type mismatch. ExpressionType=string, atgType=ERROR:
ERROR: Property not found: Http.Password
Assignment type mismatch. ExpressionType=string, atgType=ERROR:
CkStringBuilder sbResponseBody = new CkStringBuilder();
ERROR: Entry not found: Http.QuickGetSb
ERROR: CodeGen:
emitNewObject:
atgType: Http
varName: http
--emitNewObject
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
emitNewObject:
atgType: StringBuilder
varName: sbResponseBody
--emitNewObject
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
--CodeGen
ERROR: Non-existent Chilkat method: Http.QuickGetSb
Assignment type mismatch. ExpressionType=ERROR:, atgType=ckbool
if (success == false) {
ERROR: Entry not found: Http.LastErrorText
ERROR: CodeGen:
emitNewObject:
atgType: Http
varName: http
--emitNewObject
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
emitNewObject:
atgType: StringBuilder
varName: sbResponseBody
--emitNewObject
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
--CodeGen
System.out.println(http.get_LastErrorText());
return;
}
ERROR: Entry not found: Http.LastStatus
ERROR: CodeGen:
emitNewObject:
atgType: Http
varName: http
--emitNewObject
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
emitNewObject:
atgType: StringBuilder
varName: sbResponseBody
--emitNewObject
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
--CodeGen
System.out.println("Response status code = " + http.get_LastStatus());
System.out.println(sbResponseBody.getAsString());
}
}
Curl Command
curl -X GET
--digest -u 'username:password'
https://domain.com/api/atlas/{{version}}/groups/{{ProjectID}}/accessList/{{ACCESS-LIST-ENTRY}}
Postman Collection Item JSON
{
"name": "Get Single Project IP Access List Entry",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{base_url}}/api/atlas/{{version}}/groups/{{ProjectID}}/accessList/{{ACCESS-LIST-ENTRY}}",
"host": [
"{{base_url}}"
],
"path": [
"api",
"atlas",
"{{version}}",
"groups",
"{{ProjectID}}",
"accessList",
"{{ACCESS-LIST-ENTRY}}"
]
},
"description": "https://docs.atlas.mongodb.com/reference/api/ip-access-list/get-one-access-list-entry/\n\nGet the access list entry specified to {ACCESS-LIST-ENTRY} from the project associated to {PROJECT-ID}."
},
"response": [
]
}