# Data Object - ServiceLocatorNamePassword(vim.ServiceLocator.NamePassword)

Extends
  ServiceLocatorCredential
Since
  vSphere API 6.0

## Data Object Description

The data object type specifies the username and password credential for authenticating to a service endpoint.

Properties

Name | Type | Description
--- | --- | ---
password | xsd:string | The password for Username-Password authentication
username | xsd:string | The username for Username-Password authentication
Properties inherited from ServiceLocatorCredential
None
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="ServiceLocatorNamePassword"> <complexContent> <extension base="vsan:ServiceLocatorCredential"> <sequence> <element name="username" type="xsd:string"/> <element name="password" type="xsd:string"/> </sequence> </extension> </complexContent> </complexType>