# 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:vim25="urn:vim25" name="ServiceLocatorNamePassword"> <complexContent> <extension base="vim25:ServiceLocatorCredential"> <sequence> <element name="username" type="xsd:string"/> <element name="password" type="xsd:string"/> </sequence> </extension> </complexContent> </complexType>