The dmpresource type
The dmpresource type represents a URL and associated authorization credentials. For example, the dmpresource initialized by dmpinitcomp will contain the URL of the component as well as an appropriate bearer token for authorizing requests. The URL and some other attributes can be read, but the authorization token may not. All the attributes of the dmpresource type are read-only and cannot be set directly.
-
resourcetype : integerThe resource type referred to by the object-the value will correspond to one of the constants listed here:ValuesDMP_RESOURCE_DMP_MANAGERDMP ManagerDMP_RESOURCE_COMPONENTComponentDMP_RESOURCE_WEBSERVICEWeb serviceDMP_RESOURCE_DATA_PIPELINESData Pipelines serviceDMP_RESOURCE_USERUser-specified URLurl : textThe root URL of the DMP resource.id : textFor component resources, this is the component ID. For webservice resources, this is the solution service instance ID. For Data Pipelines resources, this is the solution service ID. For other resource types, this is unset.name : textFor component resources, this is the component name. For webservice resources, this is the function name. For Data Pipelines resources, this is the solution service name. For other resource types, this is unset.type : textFor component resources, this is the component type, e.g. "FICO Xpress Insight". For webservice resources, this is the constant string "SERVERLESS_REST". For Data Pipelines resources, this is the constant string "DataPipelines". For other resource types, this is unset.env : stringThe DMP lifecycle stage of the resource being referenced; an empty string when not relevent, otherwise one of the following constants:ValuesDMP_ENV_DESIGNDesign or RootDMP_ENV_STAGINGStagingDMP_ENV_PRODUCTIONProductionstatus : integerThe status of the last dmpinit operation called on this dmpresource. One of the following constants:ValuesDMP_OKSuccessDMP_ACCESS_DENIEDResource found but you do not have access to itDMP_NOT_FOUNDResource not foundDMP_IO_ERRORInternal error reading or writing dataDMP_PARSE_ERRORInternal error parsing datalasterror : textThe error message generated by the last dmpinit operation on this dmpresource, if it failed.
