Describe via WSProxy

To return information about the structure of SOAP API objects, use the Describe method. The method takes either a string representing the object type to describe or an array of strings for multiple object types.

Example: Describe a Data Extension 

1var prox = new Script.Util.WSProxy();
2var res = prox.describe("DataExtension");

Example Response 

The returned object has two properties, “RequestID” and “Results.” The results contain ObjectDefinition SOAP items that describe the desired object types.

1{
2  "RequestID": "fb768ddc-6670-4183-8b9d-4f0d5518bb2e",
3  "Results": [...]
4}