Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

Here are some tips to get you started. You can edit this page to see how it works!

1. Create a page

  • Click "Create" and select "Blank Page" to create your first page.
  • New pages are created as children of the page you are currently viewing.

2. Add to your page

  • Click "Edit" to enter the Confluence editor and use the page layouts feature to structure your content using sections and columns.
  • Use headings to format your text and drag and drop images into your page to provide visual interest.
  • Click "Insert" and select "Other Macros" to add macros for navigation, special formatting and other media.
Panel

On this page:

Table of Contents

3. Organise your pages

Here are some tips for organising your content.

  • Change the page order

The sidebar on the left displays your pages in a hierarchy. If you have Space Administrator permissions you can click "Space Tools" > "Reorder Pages" to move pages around.

  • Add labels

Labels help keep pages organised and make it easier for you to find the information you need. Click "Labels" at the bottom of a page to add or edit. The "Related pages" section on this page uses labels too!

  • Make templates

Standardise and speed up the page creation process with templates. You can create and format a template with page layouts, standard headings and instructional text for hints and guidelines. Check out our sample page on "Making a template"

Related pages

Content by Label
showLabelsfalse
spacesCCS
sorttitle
showSpacefalse
typepage
labelsdocumentation-space-sample

Adding the package to a Visual Studio project

  1. From within Visual Studio, open the Nuget Package Manager
  2. Search for "dimension data"
  3. Image Added
  4. Click Install
  5. The package will install its dependencies, the Newtonsoft.Json for serializing JSON and Microsoft's ASP.NET WebApi client for sending XML requests over HTTP
  6. Image Added

 

Connecting to the API and returning data

The following example shows an example class using the .NET 4.5 async/await patterns. All of the API call methods within the ComputeApiClient are async.

Code Block
themeMidnight
languagec#
linenumberstrue
using System.Linq;
using System.Net;
using System.Threading.Tasks;

namespace DD.Cloud.Examples.ApiClient
{
	using DD.CBU.Compute.Api.Client;
	using DD.CBU.Compute.Api.Client.Interfaces;
	using DD.CBU.Compute.Api.Contracts.Directory;

	public class TestClient
	{
		private IComputeApiClient _apiClient;
		private ICredentials _credentials = new NetworkCredential("myuser", "mypassword");
		private KnownApiRegion _targetRegion = KnownApiRegion.Australia_AU;
		private KnownApiVendor _targetVendor = KnownApiVendor.DimensionData;

		public TestClient()
		{
			_apiClient = new ComputeApiClient(_targetVendor, _targetRegion);
		}

		public async Task<string[]> GetServerNames()
		{
			// Login 
			IAccount myAccount = await _apiClient.LoginAsync(_credentials);
			// Get all of the servers
			var servers = await _apiClient.GetDeployedServers();
			// Return all of the server names
			return servers.Select(server => server.name).ToArray();
		}
	}
}