Examples of IAMPolicy


Examples of org.apache.cloudstack.iam.api.IAMPolicy

    @Override
    public void execute() throws ResourceUnavailableException,
            InsufficientCapacityException, ServerApiException {
        CallContext.current().setEventDetails("IAM policy Id: " + getId());
        // Only explicit ALLOW is supported for this release, no explicit deny
        IAMPolicy result = _iamApiSrv.addIAMPermissionToIAMPolicy(id, entityType, PermissionScope.valueOf(scope),
                getScopeId(), action, Permission.Allow, false, isReadOnly());
        if (result != null) {
            IAMPolicyResponse response = _iamApiSrv.createIAMPolicyResponse(result);
            response.setResponseName(getCommandName());
            setResponseObject(response);
View Full Code Here

Examples of org.apache.cloudstack.iam.api.IAMPolicy

                                          // are tracked
    }

    @Override
    public void execute() {
        IAMPolicy policy = _entityMgr.findById(IAMPolicy.class, getEntityId());
        if (policy != null) {
            IAMPolicyResponse response = _iamApiSrv.createIAMPolicyResponse(policy);
            response.setResponseName(getCommandName());
            setResponseObject(response);
        } else {
View Full Code Here

Examples of org.apache.cloudstack.iam.api.IAMPolicy

    }

    @Override
    public void create() throws ResourceAllocationException {
        Account account = CallContext.current().getCallingAccount();
        IAMPolicy result = _iamApiSrv.createIAMPolicy(account, name, description, parentPolicyId);
        if (result != null) {
            setEntityId(result.getId());
            setEntityUuid(result.getUuid());
        } else {
            throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create iam policy entity" + name);
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.