mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6330 [Automation] createRemoteAccessVpn call fails with access permission error
- Correcting the EntityType for PublicIpAddress entity - Adding the EntityType in the @APICommand for *IPAddrCmds
This commit is contained in:
parent
c387d983a3
commit
7819775bb8
|
|
@ -37,7 +37,7 @@ import com.cloud.network.IpAddress;
|
|||
import com.cloud.user.Account;
|
||||
|
||||
@APICommand(name = "disassociateIpAddress", description = "Disassociates an ip address from the account.", responseObject = SuccessResponse.class,
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, entityType = { IpAddress.class })
|
||||
public class DisassociateIPAddrCmd extends BaseAsyncCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(DisassociateIPAddrCmd.class.getName());
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import com.cloud.network.IpAddress;
|
|||
import com.cloud.utils.Pair;
|
||||
|
||||
@APICommand(name = "listPublicIpAddresses", description = "Lists all public ip addresses", responseObject = IPAddressResponse.class, responseView = ResponseView.Restricted,
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, entityType = { IpAddress.class })
|
||||
public class ListPublicIpAddressesCmd extends BaseListTaggedResourcesCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(ListPublicIpAddressesCmd.class.getName());
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import com.cloud.network.IpAddress;
|
|||
import com.cloud.user.Account;
|
||||
|
||||
@APICommand(name = "updatePublicIpAddress", description = "Updates an ip address", responseObject = IPAddressResponse.class,
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, entityType = { IpAddress.class })
|
||||
public class UpdateIPAddrCmd extends BaseAsyncCustomIdCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(UpdateIPAddrCmd.class.getName());
|
||||
private static final String s_name = "updateipaddressresponse";
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ package com.cloud.network.addr;
|
|||
import java.util.Date;
|
||||
|
||||
import com.cloud.dc.VlanVO;
|
||||
import com.cloud.network.IpAddress;
|
||||
import com.cloud.network.PublicIpAddress;
|
||||
import com.cloud.network.dao.IPAddressVO;
|
||||
import com.cloud.utils.net.Ip;
|
||||
|
|
@ -239,6 +240,6 @@ public class PublicIp implements PublicIpAddress {
|
|||
|
||||
@Override
|
||||
public Class<?> getEntityType() {
|
||||
return PublicIpAddress.class;
|
||||
return IpAddress.class;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ import org.apache.cloudstack.acl.PermissionScope;
|
|||
import org.apache.cloudstack.acl.SecurityChecker.AccessType;
|
||||
import org.apache.cloudstack.affinity.AffinityGroup;
|
||||
import org.apache.cloudstack.api.ApiConstants;
|
||||
import org.apache.cloudstack.api.BaseAsyncCreateCmd;
|
||||
import org.apache.cloudstack.api.BaseListCmd;
|
||||
import org.apache.cloudstack.api.InternalIdentity;
|
||||
import org.apache.cloudstack.api.command.iam.AddAccountToIAMGroupCmd;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ import org.apache.cloudstack.acl.PermissionScope;
|
|||
import org.apache.cloudstack.acl.RoleType;
|
||||
import org.apache.cloudstack.acl.SecurityChecker.AccessType;
|
||||
import org.apache.cloudstack.api.APICommand;
|
||||
import org.apache.cloudstack.api.BaseAsyncCreateCmd;
|
||||
import org.apache.cloudstack.api.BaseCmd;
|
||||
import org.apache.cloudstack.api.BaseListCmd;
|
||||
import org.apache.cloudstack.iam.api.IAMPolicy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue