# REST Resource: projects.sipDomains.aliases

## Resource: Alias

The Alias resource.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;name&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;aliasId&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;displayName&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;loadBalancerConfig&quot;</span><span class="p">: </span><span class="p">{</span>
    <span class="kd">object (</span><a href="#loadbalancerconfig"><strong><span class="kd">LoadBalancerConfig</span></strong></a><span class="kd">)</span>
  <span class="p">}</span><span class="p">,</span>
  <span class="s2">&quot;address&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;createTime&quot;</span><span class="p">: </span><span class="kd">string (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">Timestamp</span></strong></a><span class="kd">)</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Resource name of the alias. It must match the pattern `projects/{project_id}/sipDomains/{sip_domain_id}/aliases/{alias_id}`
<span class="e-code">aliasId</span> | <span class="e-code">string</span><br/>Output only. A convenience field for the `alias_id` component of the resource name.<br/><br/>This forms the address of the alias, of the form: {alias}@{fqdn}.
<span class="e-code">displayName</span> | <span class="e-code">string</span><br/>The display name of the alias for use in the UI. Max length 100 characters.
<span class="e-code">loadBalancerConfig</span> | <span class="e-code">object ([LoadBalancerConfig](#loadbalancerconfig))</span><br/>Config the alias as a load balancer.
<span class="e-code">address</span> | <span class="e-code">string</span><br/>Output only. The address represented by this alias. It will be of the form {alias}@{fqdn}.
<span class="e-code">createTime</span> | <span class="e-code">string (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">Timestamp</a> format)</span><br/>Output only. The creation time of the alias.

## LoadBalancerConfig

The configuration of an origination load balancer.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;endpoints&quot;</span><span class="p">: </span><span class="p">[</span>
    <span class="p">{</span>
      <span class="kd">object (</span><a href="#loadbalancerendpoint"><strong><span class="kd">LoadBalancerEndpoint</span></strong></a><span class="kd">)</span>
    <span class="p">}</span>
  <span class="p">]</span><span class="p">,</span>
  <span class="s2">&quot;failoverCallHandlerUris&quot;</span><span class="p">: </span><span class="p">[</span>
    <span class="kd">string</span>
  <span class="p">]</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">endpoints[]</span> | <span class="e-code">object ([LoadBalancerEndpoint](#loadbalancerendpoint))</span><br/>The endpoints that are included in the load balancer. May contain a maximum of 10 endpoints.
<span class="e-code">failoverCallHandlerUris[]</span> | <span class="e-code">string</span><br/>The failover URIs to execute in case all endpoints do not work.<br/><br/>This is useful for configuring disaster recovery for your incoming calls, and can direct to any supported endpoint type, including: programmable voice, Flow, SIP and tel URIs.

## LoadBalancerEndpoint

An endpoint that is part of a load balancer.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;uri&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;priority&quot;</span><span class="p">: </span><span class="kd">number (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">int32</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;weight&quot;</span><span class="p">: </span><span class="kd">number (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">int32</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;enabled&quot;</span><span class="p">: </span><span class="kd">boolean</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">uri</span> | <span class="e-code">string</span><br/>The [SIP URI](https://enfonica.com/docs/cloud-sip/sip-uris/) of the endpoint.
<span class="e-code">priority</span> | <span class="e-code">number (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">int32</a> format)</span><br/>The priority of the endpoint. Value must be in the range [0,65535]. Lower priority endpoints will be attempted first.
<span class="e-code">weight</span> | <span class="e-code">number (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">int32</a> format)</span><br/>The weighting to apply to this endpoint when selecting endpoints. Endpoints of the same priority will be selected by weighted randomization using this value. Value must be in the range [1,65535]. Default value is 10.
<span class="e-code">enabled</span> | <span class="e-code">boolean</span><br/>Whether this endpoint is enabled. If disabled, it won't be selected.

## Methods

Methods | &nbsp;
--|--
<span class="e-code">[create](/docs/cloud-voice/api-reference/rest/v1beta1/projects.sipDomains.aliases/create/)</span> | <span class="e-code">POST /v1beta1/{parent}/aliases</span><br/>Creates a alias.<br/><br/>The caller must have `voice.aliases.create` permission on the project.
<span class="e-code">[get](/docs/cloud-voice/api-reference/rest/v1beta1/projects.sipDomains.aliases/get/)</span> | <span class="e-code">GET /v1beta1/{name}</span><br/>Retrieves a alias identified by the supplied resource name.<br/><br/>The caller must have `voice.aliases.get` permission on the project.
<span class="e-code">[list](/docs/cloud-voice/api-reference/rest/v1beta1/projects.sipDomains.aliases/list/)</span> | <span class="e-code">GET /v1beta1/{parent}/aliases</span><br/>Lists all Aliases. List returns alias sorted by create_time descending.<br/><br/>The caller must have `voice.aliases.list` permission on the project.
<span class="e-code">[update](/docs/cloud-voice/api-reference/rest/v1beta1/projects.sipDomains.aliases/update/)</span> | <span class="e-code">PATCH /v1beta1/{alias.name}</span><br/>Updates a alias.<br/><br/>The caller must have `voice.aliases.update` permission on the project.
<span class="e-code">[delete](/docs/cloud-voice/api-reference/rest/v1beta1/projects.sipDomains.aliases/delete/)</span> | <span class="e-code">DELETE /v1beta1/{name}</span><br/>Deletes the specified alias.<br/><br/>The caller must have `voice.aliases.delete` permission on the project.

