public interface SecurityPolicies extends Service, SecurityPoliciesTypes
SecurityPolicies
interface provides methods to manage security
policies. A policy can be applied to a content library. This interface was added
in vSphere API 7.0.3.0.SecurityPoliciesTypes.Info
_VAPI_SERVICE_ID, RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.util.List<SecurityPoliciesTypes.Info> |
list()
Returns the list of security policies.
|
void |
list(AsyncCallback<java.util.List<SecurityPoliciesTypes.Info>> asyncCallback)
Returns the list of security policies.
|
void |
list(AsyncCallback<java.util.List<SecurityPoliciesTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Returns the list of security policies.
|
java.util.List<SecurityPoliciesTypes.Info> |
list(InvocationConfig invocationConfig)
Returns the list of security policies.
|
java.util.List<SecurityPoliciesTypes.Info> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. java.util.List<SecurityPoliciesTypes.Info> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- if the system reports an error while responding to the request.Unauthenticated
- if the user can not be authenticated.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void list(AsyncCallback<java.util.List<SecurityPoliciesTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of security policies.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<SecurityPoliciesTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
List of security policies.
Operation Errors:
Error
- if the system reports an error while responding to the request.
Unauthenticated
- if the user can not be authenticated.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Read
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.