Managed v4.176.0
Managed Contacts List
Returns a paginated list of Managed Contacts on your Account.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/contacts
linode-cli managed contacts-list
Response Samples
{
"data": [
{
"email": "john.doe@example.org",
"group": "on-call",
"id": 567,
"name": "John Doe",
"phone": {
"primary": "123-456-7890",
"secondary": null
},
"updated": "2018-01-01T00:01:01"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array
of objects
| ||||||||||||||||
page | integer The current page. | ||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||
results | integer The total number of results. |
errors | array
of objects
|
Managed Contact Create
Creates a Managed Contact. A Managed Contact is someone Linode special forces can contact in the course of attempting to resolve an issue with a Managed Service.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"name": "John Doe",
"email": "john.doe@example.org",
"phone": {
"primary": "123-456-7890",
"secondary": null
},
"group": "on-call"
}' \
https://api.linode.com/v4/managed/contacts
linode-cli managed contact-create \
--name "John Doe" \
--email "john.doe@example.org" \
--phone.primary "123-456-7890"
Request Body Schema
email | string<email> The address to email this Contact to alert them of issues. | ||||
group Nullable | string
2..50
charactersA grouping for this Contact. This is for display purposes only. | ||||
name | string
2..64
charactersThe name of this Contact. | ||||
phone | object Information about how to reach this Contact by phone.
|
Response Samples
{
"email": "john.doe@example.org",
"group": "on-call",
"id": 567,
"name": "John Doe",
"phone": {
"primary": "123-456-7890",
"secondary": null
},
"updated": "2018-01-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
email | string<email> The address to email this Contact to alert them of issues. | ||||
group Nullable | string
2..50
charactersA grouping for this Contact. This is for display purposes only. | ||||
id | integer This Contact’s unique ID. | ||||
name | string
2..64
charactersThe name of this Contact. | ||||
phone | object Information about how to reach this Contact by phone.
| ||||
updated | string<date-time> When this Contact was last updated. |
errors | array
of objects
|
Managed Contact Delete
Deletes a Managed Contact.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
contactId | integer RequiredThe ID of the contact to access. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4/managed/contacts/567
linode-cli managed contact-delete 567
Response Samples
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array
of objects
|
Managed Contact View
Returns a single Managed Contact.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
contactId | integer RequiredThe ID of the contact to access. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/contacts/567
linode-cli managed contact-view 567
Response Samples
{
"email": "john.doe@example.org",
"group": "on-call",
"id": 567,
"name": "John Doe",
"phone": {
"primary": "123-456-7890",
"secondary": null
},
"updated": "2018-01-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
email | string<email> The address to email this Contact to alert them of issues. | ||||
group Nullable | string
2..50
charactersA grouping for this Contact. This is for display purposes only. | ||||
id | integer This Contact’s unique ID. | ||||
name | string
2..64
charactersThe name of this Contact. | ||||
phone | object Information about how to reach this Contact by phone.
| ||||
updated | string<date-time> When this Contact was last updated. |
errors | array
of objects
|
Managed Contact Update
Updates information about a Managed Contact. This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
contactId | integer RequiredThe ID of the contact to access. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"name": "John Doe",
"email": "john.doe@example.org",
"phone": {
"primary": "123-456-7890",
"secondary": null
},
"group": "on-call"
}' \
https://api.linode.com/v4/managed/contacts/567
linode-cli managed contact-update 567 \
--name "John Doe" \
--email "john.doe@example.org" \
--phone.primary "123-456-7890"
Request Body Schema
email | string<email> The address to email this Contact to alert them of issues. | ||||
group Nullable | string
2..50
charactersA grouping for this Contact. This is for display purposes only. | ||||
name | string
2..64
charactersThe name of this Contact. | ||||
phone | object Information about how to reach this Contact by phone.
|
Response Samples
{
"email": "john.doe@example.org",
"group": "on-call",
"id": 567,
"name": "John Doe",
"phone": {
"primary": "123-456-7890",
"secondary": null
},
"updated": "2018-01-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
email | string<email> The address to email this Contact to alert them of issues. | ||||
group Nullable | string
2..50
charactersA grouping for this Contact. This is for display purposes only. | ||||
id | integer This Contact’s unique ID. | ||||
name | string
2..64
charactersThe name of this Contact. | ||||
phone | object Information about how to reach this Contact by phone.
| ||||
updated | string<date-time> When this Contact was last updated. |
errors | array
of objects
|
Managed Credentials List
Returns a paginated list of Managed Credentials on your Account.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/credentials
linode-cli managed credentials-list
Response Samples
{
"data": [
{
"id": 9991,
"label": "prod-password-1",
"last_decrypted": "2018-01-01T00:01:01"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array
of objects
| ||||||
page | integer The current page. | ||||||
pages | integer The total number of pages. | ||||||
results | integer The total number of results. |
errors | array
of objects
|
Managed Credential Create
Creates a Managed Credential. A Managed Credential is stored securely to allow Linode special forces to access your Managed Services and resolve issues.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"label": "prod-password-1",
"username": "johndoe",
"password": "s3cur3P@ssw0rd"
}' \
https://api.linode.com/v4/managed/credentials
linode-cli managed credential-create \
--label prod-password-1 \
--username johndoe \
--password s3cur3P@ssw0rd
Request Body Schema
label Required | string
2..75
charactersThe unique label for this Credential. This is for display purposes only. |
password Required | string The password to use when accessing the Managed Service. |
username | string
<=
5000
charactersThe username to use when accessing the Managed Service. |
Response Samples
{
"id": 9991,
"label": "prod-password-1",
"last_decrypted": "2018-01-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
id | integer This Credential’s unique ID. |
label | string
2..75
charactersThe unique label for this Credential. This is for display purposes only. |
last_decrypted | string<date-time> The date this Credential was last decrypted by a member of Linode special forces. |
errors | array
of objects
|
Managed SSH Key View
Returns the unique SSH public key assigned to your Linode account’s Managed service. If you add this public key to a Linode on your account, Linode special forces will be able to log in to the Linode with this key when attempting to resolve issues.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/credentials/sshkey
linode-cli managed credential-sshkey-view
Response Samples
{
"ssh_key": "ssh-rsa AAAAB...oD2ZQ== managedservices@linode"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
ssh_key | string The unique SSH public key assigned to your Linode account’s Managed service. |
errors | array
of objects
|
Managed Credential View
Returns a single Managed Credential.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
credentialId | integer RequiredThe ID of the Credential to access. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/credentials/9991
linode-cli managed credential-view 9991
Response Samples
{
"id": 9991,
"label": "prod-password-1",
"last_decrypted": "2018-01-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
id | integer This Credential’s unique ID. |
label | string
2..75
charactersThe unique label for this Credential. This is for display purposes only. |
last_decrypted | string<date-time> The date this Credential was last decrypted by a member of Linode special forces. |
errors | array
of objects
|
Managed Credential Update
Updates the label of a Managed Credential. This endpoint does not update the username and password for a Managed Credential. To do this, use the Managed Credential Username and Password Update ( POST /managed/credentials/{credentialId}/update) endpoint instead. This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
credentialId | integer RequiredThe ID of the Credential to access. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"label": "prod-password-1"
}' \
https://api.linode.com/v4/managed/credentials/9991
linode-cli managed credential-update 9991 \
--label prod-password-1
Request Body Schema
label | string
2..75
charactersThe unique label for this Credential. This is for display purposes only. |
Response Samples
{
"id": 9991,
"label": "prod-password-1",
"last_decrypted": "2018-01-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
id | integer This Credential’s unique ID. |
label | string
2..75
charactersThe unique label for this Credential. This is for display purposes only. |
last_decrypted | string<date-time> The date this Credential was last decrypted by a member of Linode special forces. |
errors | array
of objects
|
Managed Credential Delete
Deletes a Managed Credential. Linode special forces will no longer have access to this Credential when attempting to resolve issues.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
credentialId | integer RequiredThe ID of the Credential to access. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4/managed/credentials/9991
linode-cli managed credential-revoke 9991
Response Samples
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array
of objects
|
Managed Credential Username and Password Update
Updates the username and password for a Managed Credential.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
credentialId | integer RequiredThe ID of the Credential to update. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"username": "johndoe",
"password": "s3cur3P@ssw0rd"
}' \
https://api.linode.com/v4/managed/credentials/9991/update
linode-cli managed credential-update-username-password 9991 \
--username johndoe \
--password s3cur3P@ssw0rd
Request Body Schema
password Required | string The password to use when accessing the Managed Service. |
username | string
<=
5000
charactersThe username to use when accessing the Managed Service. |
Response Samples
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array
of objects
|
Managed Issues List
Returns a paginated list of recent and ongoing issues detected on your Managed Services.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/issues
linode-cli managed issues-list
Response Samples
{
"data": [
{
"created": "2018-01-01T00:01:01",
"entity": {
"id": 98765,
"label": "Managed Issue opened!",
"type": "ticket",
"url": "/support/tickets/98765"
},
"id": 823,
"services": [
null
]
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array
of objects
| ||||||||||||||||
page | integer The current page. | ||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||
results | integer The total number of results. |
errors | array
of objects
|
Managed Issue View
Returns a single Issue that is impacting or did impact one of your Managed Services.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Path Parameters
issueId | integer RequiredThe Issue to look up. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/issues/823
linode-cli managed issue-view 823
Response Samples
{
"created": "2018-01-01T00:01:01",
"entity": {
"id": 98765,
"label": "Managed Issue opened!",
"type": "ticket",
"url": "/support/tickets/98765"
},
"id": 823,
"services": [
null
]
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
created | string<date-time> When this Issue was created. Issues are created in response to issues detected with Managed Services, so this is also when the Issue was detected. | ||||||||
entity | object The ticket this Managed Issue opened.
| ||||||||
id | integer This Issue’s unique ID. | ||||||||
services | array
of integers An array of Managed Service IDs that were affected by this Issue. |
errors | array
of objects
|
Managed Linode Settings List
Returns a paginated list of Managed Settings for your Linodes. There will be one entry per Linode on your Account.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/linode-settings
linode-cli managed linode-settings-list
Response Samples
{
"data": [
{
"group": "linodes",
"id": 123,
"label": "linode123",
"ssh": {
"access": true,
"ip": "203.0.113.1",
"port": 22,
"user": "linode"
}
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array
of objects
| ||||||||||||||||
page | integer The current page. | ||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||
results | integer The total number of results. |
errors | array
of objects
|
Linode's Managed Settings View
Returns a single Linode’s Managed settings.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Path Parameters
linodeId | integer RequiredThe Linode ID whose settings we are accessing. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/linode-settings/123
linode-cli managed linode-setting-view 123
Response Samples
{
"group": "linodes",
"id": 123,
"label": "linode123",
"ssh": {
"access": true,
"ip": "203.0.113.1",
"port": 22,
"user": "linode"
}
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
group | string The group of the Linode these Settings are for. This is for display purposes only. | ||||||||
id | integer The ID of the Linode these Settings are for. | ||||||||
label | string The label of the Linode these Settings are for. | ||||||||
ssh | object The SSH settings for this Linode.
|
errors | array
of objects
|
Linode's Managed Settings Update
Updates a single Linode’s Managed settings. This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
linodeId | integer RequiredThe Linode ID whose settings we are accessing. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"ssh": {
"access": true,
"user": "linode",
"ip": "203.0.113.1",
"port": 22
}
}' \
https://api.linode.com/v4/managed/linode-settings/123
linode-cli managed linode-setting-update \
7833234 \
--ssh.access true \
--ssh.user linode \
--ssh.port 22 \
--ssh.ip 203.0.113.1
Request Body Schema
ssh | object The SSH settings for this Linode.
|
Response Samples
{
"group": "linodes",
"id": 123,
"label": "linode123",
"ssh": {
"access": true,
"ip": "203.0.113.1",
"port": 22,
"user": "linode"
}
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
group | string The group of the Linode these Settings are for. This is for display purposes only. | ||||||||
id | integer The ID of the Linode these Settings are for. | ||||||||
label | string The label of the Linode these Settings are for. | ||||||||
ssh | object The SSH settings for this Linode.
|
errors | array
of objects
|
Managed Services List
Returns a paginated list of Managed Services on your Account. These are the services Linode Managed is monitoring and will report and attempt to resolve issues with.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/services
linode-cli managed services-list
Response Samples
{
"data": [
{
"address": "https://example.org",
"body": "it worked",
"consultation_group": "on-call",
"created": "2018-01-01T00:01:01",
"credentials": [
null
],
"id": 9944,
"label": "prod-1",
"notes": "The service name is my-cool-application",
"region": null,
"service_type": "url",
"status": "ok",
"timeout": 30,
"updated": "2018-03-01T00:01:01"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array
of objects
| ||||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||||
results | integer The total number of results. |
errors | array
of objects
|
Managed Service Create
Creates a Managed Service. Linode Managed will begin monitoring this service and reporting and attempting to resolve any Issues.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"service_type": "url",
"label": "prod-1",
"address": "https://example.org",
"timeout": 30,
"body": "it worked",
"consultation_group": "on-call",
"notes": "The service name is my-cool-application",
"credentials": [
9991
]
}' \
https://api.linode.com/v4/managed/services
linode-cli managed service-create \
--service_type url \
--label prod-1 \
--address "https://example.org" \
--timeout 30 \
--body "it worked" \
--consultation_group on-call \
--notes "The service name is \
my-cool-application" \
--credentials 9991
Request Body Schema
address Required | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
label Required | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type Required | string Enum:
url
tcp How this Service is monitored. |
timeout Required | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
Response Samples
{
"address": "https://example.org",
"body": "it worked",
"consultation_group": "on-call",
"created": "2018-01-01T00:01:01",
"credentials": [
null
],
"id": 9944,
"label": "prod-1",
"notes": "The service name is my-cool-application",
"region": null,
"service_type": "url",
"status": "ok",
"timeout": 30,
"updated": "2018-03-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
address | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
created | string<date-time> When this Managed Service was created. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
id | integer This Service’s unique ID. |
label | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type | string Enum:
url
tcp How this Service is monitored. |
status | string Enum:
disabled
pending
ok
problem The current status of this Service. |
timeout | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
updated | string<date-time> When this Managed Service was last updated. |
errors | array
of objects
|
Managed Service Delete
Deletes a Managed Service. This service will no longer be monitored by Linode Managed.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
serviceId | integer RequiredThe ID of the Managed Service to access. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4/managed/services/9994
linode-cli managed service-delete 9994
Response Samples
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array
of objects
|
Managed Service View
Returns information about a single Managed Service on your Account.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Path Parameters
serviceId | integer RequiredThe ID of the Managed Service to access. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/services/9994
linode-cli managed service-view 9994
Response Samples
{
"address": "https://example.org",
"body": "it worked",
"consultation_group": "on-call",
"created": "2018-01-01T00:01:01",
"credentials": [
null
],
"id": 9944,
"label": "prod-1",
"notes": "The service name is my-cool-application",
"region": null,
"service_type": "url",
"status": "ok",
"timeout": 30,
"updated": "2018-03-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
address | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
created | string<date-time> When this Managed Service was created. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
id | integer This Service’s unique ID. |
label | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type | string Enum:
url
tcp How this Service is monitored. |
status | string Enum:
disabled
pending
ok
problem The current status of this Service. |
timeout | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
updated | string<date-time> When this Managed Service was last updated. |
errors | array
of objects
|
Managed Service Update
Updates information about a Managed Service.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
serviceId | integer RequiredThe ID of the Managed Service to access. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"service_type": "url",
"label": "prod-1",
"address": "https://example.org",
"timeout": 30,
"body": "it worked",
"consultation_group": "on-call",
"notes": "The service name is my-cool-application",
"credentials": [
9991
]
}' \
https://api.linode.com/v4/managed/services/9994
linode-cli managed service-update 9994 \
--service_type url \
--label prod-1 \
--address "https://example.org" \
--timeout 30 \
--body "it worked" \
--consultation_group on-call \
--notes "The service name is my-cool-application" \
--credentials 9991
Request Body Schema
address | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
label | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type | string Enum:
url
tcp How this Service is monitored. |
timeout | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
Response Samples
{
"address": "https://example.org",
"body": "it worked",
"consultation_group": "on-call",
"created": "2018-01-01T00:01:01",
"credentials": [
null
],
"id": 9944,
"label": "prod-1",
"notes": "The service name is my-cool-application",
"region": null,
"service_type": "url",
"status": "ok",
"timeout": 30,
"updated": "2018-03-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
address | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
created | string<date-time> When this Managed Service was created. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
id | integer This Service’s unique ID. |
label | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type | string Enum:
url
tcp How this Service is monitored. |
status | string Enum:
disabled
pending
ok
problem The current status of this Service. |
timeout | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
updated | string<date-time> When this Managed Service was last updated. |
errors | array
of objects
|
Managed Service Disable
Temporarily disables monitoring of a Managed Service.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
serviceId | integer RequiredThe ID of the Managed Service to disable. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST \
https://api.linode.com/v4/managed/services/9994/disable
linode-cli managed service-disable 9994
Response Samples
{
"address": "https://example.org",
"body": "it worked",
"consultation_group": "on-call",
"created": "2018-01-01T00:01:01",
"credentials": [
null
],
"id": 9944,
"label": "prod-1",
"notes": "The service name is my-cool-application",
"region": null,
"service_type": "url",
"status": "ok",
"timeout": 30,
"updated": "2018-03-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
address | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
created | string<date-time> When this Managed Service was created. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
id | integer This Service’s unique ID. |
label | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type | string Enum:
url
tcp How this Service is monitored. |
status | string Enum:
disabled
pending
ok
problem The current status of this Service. |
timeout | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
updated | string<date-time> When this Managed Service was last updated. |
errors | array
of objects
|
Managed Service Enable
Enables monitoring of a Managed Service.
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_write |
Path Parameters
serviceId | integer RequiredThe ID of the Managed Service to enable. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST \
https://api.linode.com/v4/managed/services/9994/enable
linode-cli managed service-enable 9994
Response Samples
{
"address": "https://example.org",
"body": "it worked",
"consultation_group": "on-call",
"created": "2018-01-01T00:01:01",
"credentials": [
null
],
"id": 9944,
"label": "prod-1",
"notes": "The service name is my-cool-application",
"region": null,
"service_type": "url",
"status": "ok",
"timeout": 30,
"updated": "2018-03-01T00:01:01"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
address | string<url>
3..100
charactersThe URL at which this Service is monitored. URL parameters such as URL fragments/anchors such as |
body Nullable | string
<=
100
charactersWhat to expect to find in the response body for the Service to be considered up. |
consultation_group | string
<=
50
charactersThe group of ManagedContacts who should be notified or consulted with when an Issue is detected. |
created | string<date-time> When this Managed Service was created. |
credentials | array
of integers An array of ManagedCredential IDs that should be used when attempting to resolve issues with this Service. |
id | integer This Service’s unique ID. |
label | string
3..64
charactersThe label for this Service. This is for display purposes only. |
notes Nullable | string Any information relevant to the Service that Linode special forces should know when attempting to resolve Issues. |
region | string The Region in which this Service is located. This is required if address is a private IP, and may not be set otherwise. |
service_type | string Enum:
url
tcp How this Service is monitored. |
status | string Enum:
disabled
pending
ok
problem The current status of this Service. |
timeout | integer
1..255How long to wait, in seconds, for a response before considering the Service to be down. |
updated | string<date-time> When this Managed Service was last updated. |
errors | array
of objects
|
Managed Stats List
Returns a list of Managed Stats on your Account in the form of x and y data points. You can use these data points to plot your own graph visualizations. These stats reflect the last 24 hours of combined usage across all managed Linodes on your account giving you a high-level snapshot of data for the following:
- cpu
- disk
- swap
- network in
- network out
This command can only be accessed by the unrestricted users of an account.
Authorizations
personalAccessToken | |
oauth | account:read_only |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/managed/stats
linode-cli managed stats-list
Response Samples
{
"data": {
"cpu": [
{
"true": 29.94,
"x": 11513761600000
}
],
"disk": [
{
"true": 29.94,
"x": 11513761600000
}
],
"net_in": [
{
"true": 29.94,
"x": 11513761600000
}
],
"net_out": [
{
"true": 29.94,
"x": 11513761600000
}
],
"swap": [
{
"true": 29.94,
"x": 11513761600000
}
]
}
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
|
errors | array
of objects
|