Skip to content

Commit b82d6eb

Browse files
committed
updated delete cloud service command
1 parent 714d750 commit b82d6eb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Elastacloud.AzureManagement.Fluent/Commands/Services/DeleteHostedServiceCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ internal DeleteHostedServiceCommand(string name)
2424
{
2525
Name = name;
2626
HttpVerb = HttpVerbDelete;
27-
HttpCommand = Name;
27+
HttpCommand = Name + "?comp=media";
2828
ServiceType = "services";
2929
OperationId = "hostedservices";
30+
AdditionalHeaders["x-ms-version"] = "2013-08-01";
3031
}
3132

3233
/// <summary>

Elastacloud.FluentManagement.FSTest/VirtualMachines.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ let fred = sbClient.CheckNamespaceExists("fred")
8080
// create a namespace which violates the rules
8181
let fred2 = sbClient.CreateNamespace("fred")
8282
// create a valid namespace - bug in the service managemet api - returns a 403 downstream service access
83-
let toolscheck = sbClient.CheckNamespaceExists("elastatools")
83+
let toolscheck = sbClient.CheckNamespaceExists("elastatools3")
8484
let elastacloud = sbClient.CreateNamespace("elastatools3")
85-
let clouddelete = sbClient.DeleteNamespace("elastatools1")
85+
let clouddelete = sbClient.DeleteNamespace("elastatools3")

0 commit comments

Comments
 (0)