Unsolved
This post is more than 5 years old
274.2K Posts
0
2584
Using Atmos API
Hi All,
I am trying to work with ATMOS APIs (.Net Based) to create a POC for a customer. The scenarios whcih my team wants to showcase are as follows
1) Create , List, Delete : Tenant
2) Create , List , Delete : Sub Tenant
I was able to create a subtenant and list all sub tenants. But I was not able to delete.
Similarly I was able to list all tenants but not able to create one.
Correct me if I am wrong. I am compeltely new to this. Would appreciate if you can help on this.
I was not able to find a good documentation other than The Management API guide. Can you help in that also?
rbala1
222 Posts
0
February 19th, 2012 22:00
Can you post complete code that illustrates the problem?
Anonymous
274.2K Posts
0
February 19th, 2012 22:00
IAtmosPoxApiSysMgmtProxy.Data.SessionId sessionId = new IAtmosPoxApiSysMgmtProxy.Data.SessionId("NA");
ISubtenant2 subtenantInterface = AtmosServiceFactory.GetSubTenant2Interface(host, sessionId, configFile);
IAtmosPoxApiSysMgmtProxy.Request.Delete.Subtenant subtenant = new IAtmosPoxApiSysMgmtProxy.Request.Delete.Subtenant();
subtenant.TenantAdminUserName = txt_UsrName.Text;
subtenant.TenantAdminPassword = txt_Pwd.Text;
subtenant.TenantName = txt_TenantName.Text;
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = grd_list.Rows[index];
if (row == null)
return;
subtenant.SubTenantName = Server.HtmlDecode(row.Cells[1].Text);
string t = subtenantInterface.Delete(subtenant);
Anonymous
274.2K Posts
0
February 20th, 2012 02:00
Darren, thanks for your reply. I am working with a application developement team. What we are trying to do is that to showcase customer that we can use atmos API to work out these tasks. Otherwise I completely agree with your arguements
DarrenSoothill
15 Posts
0
February 20th, 2012 02:00
Which part of the world are you in?
Creating and deleting tenants is not something that should be done lightly as there are many restrictions around tenants.
In my experience of most customers you typically only have 1 or 2 tenants and most of the work is done around managing sub tenants.
rbala1
222 Posts
0
February 21st, 2012 06:00
I can't tell from your code and you don't specify what happens when you do try to delete a subtenant, but your HTTP request need to match this example from the Atmos Systems Management API Guide:
Delete Subtenant