Register Subscription

 

Updated: May 7, 2015

The Register Subscription API must be called before you are allowed to create Scheduler resources such as job collections.

The Register Subscription request is specified as follows. Replace <subscription-id> with your subscription ID.

Method

Request URI

PUT

PUT https://management.core.windows.net:8443/<subscription-id>/services?service=scheduler.jobcollections&action=register HTTP/1.1

Parameter

Description

service

Required. Set to value “schedulerdf.jobcollection” for this operation

action

Required. Set to “register” for this operation

The following table describes required and optional request headers.

Request Header

Description

x-ms-version

Required. Specifies the version of the operation to use for this request. This header should be set to 2013-06-01 or a later version.

The response includes an HTTP status code, a set of response headers, and a response body.

A successful operation returns status code 200 (OK).

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Header

Description

x-ms-request-id

A value that uniquely identifies a request made against the Management service. For an asynchronous operation, you can call get operation status with the value of the header to determine whether the operation is complete, has failed, or is still in progress. See Tracking Asynchronous Service Management Requests for more information.

Any management certificate associated with the subscription specified by <Subscription-Id> can be used to authenticate this operation. For additional details, see Authenticating Service Management Requests

The following sample URI makes a request for fictional subscription named mysub:


PUT https://management.core.windows.net:8443/mysub/services?service=schedulerdf.jobcollections&action=register HTTP/1.1

The request is sent with the following headers:


x-ms-version: 2013-06-01
Accept: application/xml
Content-Type: application/xml; charset=utf-8
Host: management.core.windows-int.net
Content-Length: 0

The request is sent with the following XML body:

(Empty)

After the request has been sent, the following response is returned:


HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 0
Server: 1.0.6196.70 (rd_rdfe.131113-1631) Microsoft-HTTPAPI/2.0
x-ms-request-id: 693534c48ea231d597d700832d1a85b3
Date: Mon, 09 Dec 2013 04:42:34 GMT

Show: