Join fellow LogicMonitor users at the Elevate Community Conference and get hands-on with our latest product innovations.

Register Now

Resources

Explore our blogs, guides, case studies, eBooks, and more actionable insights to enhance your IT monitoring and observability.

View Resources

About us

Get to know LogicMonitor and our team.

About us

Documentation

Read through our documentation, check out our latest release notes, or submit a ticket to our world-class customer service team.

View Resources

Adding Device Groups

Last updated on 07 January, 2025

Viewing Subscription IDs

You can use LogicMonitor REST API v3 to view subscription IDs. You must authenticate yourself before making the API request.

URI: POST /azure/functions/discoverSubscriptions

ParameterTypeDescription
clientIdStringThe unique identifier of your Azure AD application.
Example – "clientId": "2345abcd-6789-ef01-gh23-ijkl456789mn" 
secretKeyStringThe secret authentication key for your Azure AD application.
Example – "secretKey": "A1B2C3D4E5F6G7H8I9J0"
groupIdIntegerThe identifier for the Azure group in your subscription query, specific to the Azure service used.
Example – "groupId": 98765
tenantIdStringThe unique ID of your Azure AD tenant.
Example – "tenantId": "1234abcd-5678-wxyz-9101-efgh2345ijkl"
isChinaAccountBooleanIndicates if the account is hosted on Azure China.
Example – "isChinaAccount": false

Testing Azure Account

URI: POST /azure/functions/testAccount

ParameterTypeDescription
clientIdStringThe unique identifier of your Azure AD application.
Example – "clientId": "2345abcd-6789-ef01-gh23-ijkl456789mn"
secretKeyStringThe secret authentication key for your Azure AD application.
Example – "secretKey": "A1B2C3D4E5F6G7H8I9J0"
checkedServicesStringSpecify Azure services that must be selected and formatted as a delimited string.
Example – "checkedServices": "Databricks,Blob Storage,API Management"
subscriptionIdsStringAzure subscription IDs to query for.
Example – "subscriptionIds": "sub-id-123,sub-id-456,sub-id-789"
groupIdIntegerThe identifier for the Azure group in your subscription query, specific to the Azure service used.
Example – "groupId": 98765
tenantIdStringThe unique ID of your Azure AD tenant.
Example – "tenantId": "1234abcd-5678-wxyz-9101-efgh2345ijkl"
isChinaAccountBooleanIndicates if the account is hosted on Azure China.
Example – "isChinaAccount": false

Testing AWS Account

URI: POST /aws/functions/testAccount

ParameterTypeDescription
accessIdStringThe AWS access ID required for user identification while making API requests.
Example – "accessId": "AKIAIOSFODNN7EXAMPLE"
accountIdStringThe 12 digits AWS account ID.
Example – "accountId": "123456789012"
newBillingBucketStringThe bucket name where you store your billing file. It is used by the new AWS billing service. 
Example – "newBillingBucket": "new-aws-billing-bucket"
assumedRoleArnStringThe Amazon Resource Name (ARN) for the role being assumed for cross-account access.
Example – "assumedRoleArn": "arn:aws:iam::123456789012:role/example-role"
bucketNameForBillingFilesStringThe name of the S3 bucket that stores billing files.
Example – "bucketNameForBillingFiles": "my-aws-billing-bucket"
accessKeyStringThe AWS access key used with the access ID for API authentication.
Example – "accessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
checkedServicesStringThe AWS services to verify access. You can provide a list of AWS services separated by a comma.
Example – "checkedServices": "EC2,S3,RDS"
groupIdIntegerThe group ID used in the AWS environment.
Example – "groupId": 78910"
newBillingPathStringThe path prefix where you store your billing file. It is used by the new AWS billing service. 
Example – "bucket-name/billing-file-name"
externalIdStringThe external ID for granting cross-account access with an assumed role.
Example – "externalId": "12345-unique-external-id"

Testing SaaS Account

URI: POST /saas/functions/testAccount

ParameterTypeDescription
privateKeyStringThe SaaS private key.
Example – "privateKey": "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQD..."
accountIdStringThe account ID of the SaaS account that is being tested.
Example – "accountId": "account123"
clientIdStringThe SaaS client ID assigned to the SaaS application for identification.
Example – "clientId": "client456"
secretKeyStringThe SaaS secret key used with the client ID for authentication.
Example – "secretKey": "secret789"
statusTypeStringThe SaaS status type used in the SaaS environment.
Example – "statusType": "Operational"
accountTypeStringThe SaaS account type.
Example – "accountType": "Premium"
tenantIdStringThe SaaS tenant ID used in the SaaS environment.
Example – "tenantId": "tenant012"
serviceNameStringThe SaaS services to verify access. You can provide a list of SaaS services separated by a comma.
Example – "serviceName": "Service1,Service2"
userIdStringThe unique SaaS user ID used in the SaaS environment.
Example – "userId": "user345"
statusUrlsStringThe SaaS status URL.
Example – "statusUrls": "https://status.saasapp.com/"

Testing GCP Account

URI: POST /gcp/functions/testAccount

ParameterTypeDescription
serviceAccountKeyStringThe key for your GCP service account, used for authentication and authorization.
Example – "serviceAccountKey": "laa12a4567e51cdeg7d3cf03d54321a38bbbaaaa" 
checkedServicesStringThe GCP services to verify access. You can provide a list of GCP services separated by a comma.
Example – "checkedServices": "Compute Engine,Cloud Storage"
groupIdIntegerThe group ID used in the GCP environment.
Example – "groupId": 12345"
projectIdStringThe unique ID of your GCP project where services are hosted and tested.
Example – "projectId": "my-gcp-project-123"

In This Article

Start Your Trial

Full access to the LogicMonitor platform.
Comprehensive monitoring and alerting for unlimited devices.