Get Object Details

Get Details of an Object

Using this SDK method, you will be able to get all details of an object and all its versions. The Object reference used in the below code snippet is the component instance.

Info: To use this SDK method, you need intialize it with Admin scope. You can learn more about this requirement from this section

Ensure the following packages are imported:

    
copy
import com.zc.component.stratus.ZCObject;
    
copy
ZCObject objectRes = object.getDetails(); System.out.println(objectRes);
Note: If Versioning is enabled, then using this SDK method will only return the latest version's object details.

Get Details of a Particular Version of the Object

Using this SDK method, you will be able to get all details of a particular object’s version.

Info: To use this SDK method, you need intialize it with Admin scope. You can learn more about this requirement from this section

Parameters Used

Parameter Name Data Type Definition
versionId String An Optional parameter. If Versioning is enabled for your bucket then, this param will help you refer to a particular version using its unique Version ID.

Ensure the following packages are imported:

    
copy
import com.zc.component.stratus.ZCObject;
    
copy
ZCObject objectRes = object.getDetails("versionId"); System.out.println(objectRes);
Note: You can get the details of the latest version of the object by passing the parameter valuse as topVersion.

Last Updated 2025-05-30 16:54:59 +0530 +0530