|
| 1 | +// Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +// or more contributor license agreements. See the NOTICE file |
| 3 | +// distributed with this work for additional information |
| 4 | +// regarding copyright ownership. The ASF licenses this file |
| 5 | +// to you under the Apache License, Version 2.0 (the |
| 6 | +// "License"); you may not use this file except in compliance |
| 7 | +// with the License. You may obtain a copy of the License at |
| 8 | +// |
| 9 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +// |
| 11 | +// Unless required by applicable law or agreed to in writing, |
| 12 | +// software distributed under the License is distributed on an |
| 13 | +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +// KIND, either express or implied. See the License for the |
| 15 | +// specific language governing permissions and limitations |
| 16 | +// under the License. |
| 17 | +package org.apache.cloudstack.api.command.user.vm; |
| 18 | + |
| 19 | +import com.cloud.vm.VirtualMachine; |
| 20 | +import org.apache.cloudstack.acl.RoleType; |
| 21 | +import org.apache.cloudstack.api.APICommand; |
| 22 | +import org.apache.cloudstack.api.ResponseObject.ResponseView; |
| 23 | +import org.apache.cloudstack.api.command.user.UserCmd; |
| 24 | + |
| 25 | +import org.apache.cloudstack.api.response.UserVmResponse; |
| 26 | + |
| 27 | +@APICommand(name = "listVnfAppliances", description = "List VNF appliance owned by the account.", |
| 28 | + responseObject = UserVmResponse.class, |
| 29 | + responseView = ResponseView.Restricted, entityType = {VirtualMachine.class}, |
| 30 | + requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, |
| 31 | + authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User}, |
| 32 | + since = "4.19.1") |
| 33 | +public class ListVnfAppliancesCmd extends ListVMsCmd implements UserCmd { |
| 34 | + |
| 35 | + @Override |
| 36 | + public Boolean getVnf() { |
| 37 | + return true; |
| 38 | + } |
| 39 | +} |
0 commit comments