curl --user administrator:y0uR_P455woR*d \
-H "Accept: application/json" \
-X GET http://localhost:8080/midpoint/ws/rest/resources/ef2bc95b-76e0-59e2-86d6-9999cccccccc?options=raw \
-v
Get Resource object
The response is an HTTP 200 code in case of success with a response body containing the queried item.
Example Output of "Get Resource object" example
The example is simplified, some properties were removed to keep the example output "short". This example does not contain all possible properties of this object type.
{
"resource" : {
"oid" : "ef2bc95b-76e0-59e2-86d6-9999cccccccc",
"version" : "1",
"name" : "Test CSV: username",
"description" : "Simple CSV resource that is using single identifier (username)",
"metadata" : {},
"operationExecution" : {},
"iteration" : 0,
"iterationToken" : "",
"connectorRef" : {
"oid" : "01aa0a9e-dfe0-47c8-8fca-4446894a348c",
"relation" : "org:default",
"type" : "c:ConnectorType",
"filter" : {
"equal" : {
"path" : "c:connectorType",
"value" : "com.evolveum.polygon.connector.csv.CsvConnector"
}
}
},
"connectorConfiguration" : {
"@ns" : "http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3",
"configurationProperties" : {
"@ns" : "http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-csv/com.evolveum.polygon.connector.csv.CsvConnector",
"multivalueDelimiter" : ";",
"fieldDelimiter" : ",",
"filePath" : "target/midpoint.csv",
"encoding" : "utf-8",
"passwordAttribute" : "password",
"uniqueAttribute" : "username"
}
},
"schemaHandling" : {
"objectType" : {
"@id" : 1,
"displayName" : "Default Account",
"default" : true,
"objectClass" : "ri:AccountObjectClass",
"attribute" : [ {
"@id" : 2,
"ref" : "ri:username",
"outbound" : {
"source" : {
"path" : "$user/name"
}
}
}, {
"@id" : 3,
"ref" : "ri:firstname",
"outbound" : {
"source" : {
"path" : "$user/givenName"
}
}
}, {
"@id" : 4,
"ref" : "ri:lastname",
"outbound" : {
"source" : {
"path" : "$user/familyName"
}
}
} ],
"activation" : {
"administrativeStatus" : {
"outbound" : {
"@id" : 5
}
}
},
"credentials" : {
"password" : {
"outbound" : {
"@id" : 6
}
}
}
}
},
"capabilities" : {
"configured" : {
"activation" : {
"status" : {
"attribute" : "ri:disabled",
"enableValue" : "false",
"disableValue" : "true"
}
}
}
}
}
}
Was this page helpful?
YES
NO
Thanks for your feedback