VMware vCloud Suite SDK for .NET 6.0.0
|
The Unauthorized
error indicates that the user is not authorized to perform the method.
More...
Inherits vmware::vapi::std::errors::Error.
Public Member Functions | |
Unauthorized (global::System.Collections.Generic.List< vmware.vapi.std.LocalizableMessage > messages, vmware.vapi.bindings.IStructure data) | |
Creates a new instance of this type using the given arguments. | |
Unauthorized () | |
Creates a default new instance. | |
override vmware.vapi.bindings.type.StructType | _GetType () |
override vmware.vapi.data.StructValue | _GetDataValue () |
override void | _Validate () |
override bool | _HasTypeNameOf< T > () |
override T | _ConvertTo< T > () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Properties | |
override string | Message [get] |
The Unauthorized
error indicates that the user is not authorized to perform the method.
API requests may include a security context containing user credentials. For example, the user credentials could be a SAML token, a user name and password, or the session identifier for a previously established session. Invoking the method may require that the user identified by those credentials has particular privileges on the method or on one or more resource identifiers passed to the method.
Examples:
Counterexamples:
For security reasons, the Error.data field in this error is null, and the Error.messages field in this error does not disclose why the user is not authorized to perform the method. For example the messages would not disclose which privilege the user did not have or which resource identifier the user did not have the required privilege to access. The API documentation should indicate what privileges are required.
vmware::vapi::std::errors::Unauthorized::Unauthorized | ( | global::System.Collections.Generic.List< vmware.vapi.std.LocalizableMessage > | messages, |
vmware.vapi.bindings.IStructure | data | ||
) | [inline] |
Creates a new instance of this type using the given arguments.
vmware::vapi::std::errors::Unauthorized::Unauthorized | ( | ) | [inline] |
Creates a default new instance.
override T vmware::vapi::std::errors::Unauthorized::_ConvertTo< T > | ( | ) | [inline] |
Reimplemented from vmware::vapi::std::errors::Error.
override vmware.vapi.data.StructValue vmware::vapi::std::errors::Unauthorized::_GetDataValue | ( | ) | [inline] |
Reimplemented from vmware::vapi::std::errors::Error.
override vmware.vapi.bindings.type.StructType vmware::vapi::std::errors::Unauthorized::_GetType | ( | ) | [inline, virtual] |
Reimplemented from vmware::vapi::std::errors::Error.
override bool vmware::vapi::std::errors::Unauthorized::_HasTypeNameOf< T > | ( | ) | [inline] |
Reimplemented from vmware::vapi::std::errors::Error.
override void vmware::vapi::std::errors::Unauthorized::_Validate | ( | ) | [inline, virtual] |
Reimplemented from vmware::vapi::std::errors::Error.
override bool vmware::vapi::std::errors::Unauthorized::Equals | ( | object | obj | ) | [inline] |
Reimplemented from vmware::vapi::std::errors::Error.
override int vmware::vapi::std::errors::Unauthorized::GetHashCode | ( | ) | [inline] |
Reimplemented from vmware::vapi::std::errors::Error.
override string vmware::vapi::std::errors::Unauthorized::Message [get] |
Reimplemented from vmware::vapi::std::errors::Error.