Skip to content

Enabling force parameter in delete request of Java client  #1518

@lgiommi

Description

@lgiommi

Hi,
I am using the Java package im-java-api version 0.4.15 in indigo-dc orchestrator. I see from the code of IM that you have the force parameter (as reported in your guide) to force the deletion of an infrastructure. Unfortunately in the Java client for the REST API of the IM it is not supported. Indeed the function destroyInfrastructureAsync in the InfrastructureManager class is defined as

public void destroyInfrastructureAsync(String infId) throws ImClientException {
    RestParameter asyncParameter = createCallParameters(REST_PARAMETER_NAME_ASYNC, true);
    getImClient().delete(PATH_INFRASTRUCTURES + PATH_SEPARATOR + infId,
        String.class, asyncParameter);
  }

and the only argument it takes is the infrastructure id. I tried to concatenate it with "?force=true" but it seems it doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions