udCloudWorkspace

The udCloudWorkspace object provides an interface for accessing data of workspace hosted in udCloud

Functions

enum udError udCloudWorkspace_GetWorkspaceList(struct udContext *pContext, struct udCloudWorkspace **ppCloudWorkspaces, int *pCount)

Get a list of available Workspaces hosted in udCloud

ParameterDescription
pContextThe pointer to the udContext of the session to use.
ppCloudWorkspacesThe pointer pointer of the udCloudWorkspace.
pCountThe number of Workspace in ppCloudWorkspaces.

Returns: A udError value based on the result of the query on udCloud.

enum udError udCloudWorkspace_ReleaseWorkspaceList(struct udCloudWorkspace **ppCloudWorkspaces, int count)

Destroys the list of Workspaces that was created by udCloudWorkspace_GetWorkspaceList

ParameterDescription
ppCloudWorkspacesThe list of Workspaces to be destroyed.
countThe number of udCloudWorkspace in ppCloudWorkspaces.

Returns: A udError value based on the memory been freed.

enum udError udCloudWorkspace_GetProjectList(struct udContext *pContext, struct udCloudWorkspace *pCloudWorkspace, struct udCloudProject **ppCloudProjects, int *pCount)

Get a list of available Projects owned by a specific Workspace in udCloud

ParameterDescription
pContextThe pointer to the udContext of the session to use.
pCloudWorkspaceThe pointer of the udCloudWorkspace.
ppCloudProjectsA list of Projects returned.
pCountThe number of projects in ppCloudProject.

Returns: A udError value based on the result of the query on udCloud.

enum udError udCloudWorkspace_ReleaseProjectList(struct udCloudProject **ppCloudProjects, int count)

Destroys the list of Projects that was created by udCloudWorkspace_GetProjectList

ParameterDescription
ppCloudProjectsThe list of Projects to be destroyed.
countThe number of udCloudProject in ppCloudProjects.

Returns: A udError value based on the memory been freed.

Structs

struct udCloudWorkspace

This represents a udCloud Workspace

FieldTypeDescription
ID[64]charThe workspace id from udCloud.
pNamechar \*The name of the workspace.
permissionsuint64_tThe permissions of this workspace.
isPendingDeleteuint32_tA flag to know if the workspace will be deleted shortly.