# Setservicelinks

**URL:** <https://forums.suse.com/t/setservicelinks/2305>\
**Category:** Rancher 1.x\
**Created:** [April 4, 2016, 1:51pm UTC](https://forums.suse.com/t/setservicelinks/2305 "2016-04-04T13:51:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [April 4, 2016, 1:51pm UTC](https://forums.suse.com/t/setservicelinks/2305/1 "2016-04-04T13:51:47Z")

</div>

Hi,

This used to work… ?

Rancher: v1.0.0:

Request:

```json
{
  "serviceLinks": [
    {
      "links": null,
      "actions": null,
      "name": "zookeeper",
      "serviceId": "1s2072"
    },
    {
      "links": null,
      "actions": null,
      "name": "api.www.5377.xxx.yy.zzzz.qqqqq.net",
      "serviceId": "1s484"
    },
    {
      "links": null,
      "actions": null,
      "name": "flume",
      "serviceId": "1s445"
    }
  ],
  "action": "setservicelinks",
  "links": null,
  "actions": null
}

```

Response:

```auto
{
  "id": "9c62d860-7199-4f2b-8cba-51ed5df4e46f",
  "type": "error",
  "links": {},
  "actions": {},
  "status": 422,
  "code": "InvalidCharacters",
  "message": null,
  "detail": null,
  "fieldName": "name"
}

```

But there were a few fewer fields in the request then, too…

This request gave 200 OK response, a couple of weeks ago:

```json
{
  "serviceLinks": [
    {
      "name": "flume",
      "serviceId": 445
    },
    {
      "name": "zookeeper",
      "serviceId": 1472
    },
    {
      "name": "api.www.5307.xxxx.yy.zzzz.qqqqq.net",
      "serviceId": 484
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [April 4, 2016, 2:15pm UTC](https://forums.suse.com/t/setservicelinks/2305/2 "2016-04-04T14:15:03Z")

</div>

Ok, found this:

```auto
{
"id": "serviceLink",
"type": "schema",
"links": {
"self": "…/v1/schemas/servicelink",
},
"actions": { },
"pluralName": "serviceLinks",
"resourceFields": {
"name": {
"type": "string",
"validChars": "a-zA-Z0-9-/",
"description": null,
"create": true,
"update": false,
"nullable": true,
"readOnCreateOnly": false,
},
...

```

Why the `validChars` validation against dots there!?  
I was using that 😢

For the record… this used to be:

```auto
{
"id": "serviceLink",
"type": "schema",
"links": {
"self": "…/v1/schemas/servicelink",
},
"actions": { },
"pluralName": "serviceLinks",
"resourceFields": {
"name": {
"type": "string",
"create": true,
"update": false,
"nullable": true,
"readOnCreateOnly": false,
},
...

```

Guess I’ll have to take the detour through service aliases, right?

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [April 4, 2016, 3:12pm UTC](https://forums.suse.com/t/setservicelinks/2305/3 "2016-04-04T15:12:09Z")

</div>

In GA, we added stricter validation for the service aliases so that Rancher’s internal DNS would work, but we will most likely be relaxing the validation.

[https://github.com/rancher/rancher/issues/4252](https://github.com/rancher/rancher/issues/4252)

---

<div class="post-metadata">

**Author:** ![fnord](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fnord](https://forums.suse.com/u/fnord)\
**Post date:** [April 4, 2016, 4:26pm UTC](https://forums.suse.com/t/setservicelinks/2305/4 "2016-04-04T16:26:55Z")

</div>

Is there some recommended way to link with an FQDN?

---

<div class="post-metadata">

**Author:** ![kaos](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kaos/32/38_2.png) [@kaos](https://forums.suse.com/u/kaos)\
**Post date:** [April 5, 2016, 9:19am UTC](https://forums.suse.com/t/setservicelinks/2305/5 "2016-04-05T09:19:33Z")

</div>

Thanks @denise, looking forward to 1.0.1 soon 😄
