LogoLogo
HomeSign UpGithub
  • Home
  • Release Notes
  • Getting Started
    • Create your first Test
    • Create Run Settings
    • Analyze the results
      • Job Summary
      • Logs
      • State
      • Payload
    • Look deeper with Metrics
  • Concepts
    • Workspaces
      • Role Based Access Control (RBAC)
      • Invitation Management
      • GitHub Integration
      • Deletion of Workspaces
      • System Status
    • Understanding Tests
      • Stages Management
        • Init Stage
        • Running Stage(s)
        • Finished State
      • Generating Messages
        • Scripting Environment
        • State Object
      • Response Handler
      • Preview Tests
      • Exporting/Importing Tests
        • Import OpenAPI JSON/YAML
      • Locking/Unlocking a test
    • Stateful Simulation
      • Mapping the IoT device lifecycle
    • Protocol Settings
      • MQTT
      • HTTP
      • Using other protocols
    • Run Settings
      • Network Simulation
      • Execution Strategies
      • Client Distribution
    • Scenarios
    • Glob Storage
    • Metrics
    • Mailbox
    • Licensing and Limits
    • Deployment Models
  • Additional Helpers
    • External Libraries
    • Inbuilt Libraries
    • IoTIFY Helper Functions
      • Job Functions
      • Messaging Functions
      • Glob Functions
      • Metrics Functions
      • Mailbox Functions
      • Data Generation Functions
  • platform integrations
    • AWS IoT Connector
  • Guides
    • Smart City
    • Smart Home
    • Load Testing Kafka
  • IoT Testing
    • Overview
      • Feed offline sensor data from Google Sheets to your IoT platform
    • Functional Testing
      • Basic functional test
      • Geofencing Validation
    • Performance Testing
      • MQTT end to end latency Measurement
    • Security Testing
    • Load Testing
    • Test Automation & CI/CD integration
  • API
    • Simulation API
    • Glob APIs
    • Metrics API
  • Glossary
  • Create Account
  • TEMP
    • Getting Started
      • Beginner
      • Developer
      • Tester
    • Walkthrough
    • Protocol Settings
      • CoAP
      • Raw (TCP/UDP/TLS/DTLS)
      • LWM2M
      • NONE
    • Under the hood
    • Google Sheets API
    • Azure IoT
    • Losant IoT
      • Losant Connector
      • Parking Space Management
      • Waste Management
      • Connected Truck
      • Delivery Van
    • Google Cloud IoT Core
    • IBM Cloud
      • Simple Messaging
      • IBM Bluemix: Monitoring Energy Consumption
    • Dweet.io
    • JMeter and why it fails at IoT
Powered by GitBook
On this page
  • Create a new Glob entry or update an existing Glob entry
  • Get a Glob object
  • Get all the Glob keys
  • Glob Delete

Was this helpful?

  1. API

Glob APIs

Glob are fast key value stores which could be controlled to change the simulation behavior.

Glob APIs could be used in the template to access the global key-value store. These values are useful to enable interaction between templates and control the behaviour of simulation through the user.

Create a new Glob entry or update an existing Glob entry

POST https://nsim.iotify.io/api/datastore/:workspaceId/glob

This endpoint allows you to create/update a Glob entry

Path Parameters

Name
Type
Description

workspaceId*

String

The Workspace ID where the Glob is

Headers

Name
Type
Description

Content-Type*

String

application/json

domain*

String

The domain under which your account exists

key *

String

API token for the account

Request Body

Name
Type
Description

key*

String

The key for the Glob entry

value*

String

The value for the Glob entry

true
{
    // Response
}
// Example curl command

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" -d '{"key":"$GLOBKEY","value":"$GLOBVALUE"}' nsim.iotify.io/api/datastore/$WORKSPACE/glob

Get a Glob object

GET https://nsim.iotify.io/api/datastore/:workspaceId/glob/item/:globKey

Path Parameters

Name
Type
Description

workspaceId*

string

The workspace ID for the workspace where the Glob is present

globKey*

String

The key for the glob entry to be fetched

Headers

Name
Type
Description

key*

string

API token for the account

Content-Type*

String

application/json

domain*

String

The domain under which your account exists

{
    "key": "CurlTest",
    "value": "Testing"
}
// Example curl command

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/datastore/$WORKSPACE/glob/item/$GLOBKEY

Get all the Glob keys

GET nsim.iotify.io/api/datastore/:workspaceId/glob/keys

Path Parameters

Name
Type
Description

workspaceId*

String

The workspace ID for the workspace where the Glob is present

Headers

Name
Type
Description

Content-Type*

String

application/json

domain*

String

The domain under which your account exists

key*

String

API token for the account

key1, key2, key3, key4, key5
// Example curl command

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/datastore/$WORKSPACE/glob/keys

Glob Delete

DELETE nsim.iotify.io/api/datastore/:workspaceId/glob/item/:globKey

Deletes the key value pair of the glob

Path Parameters

Name
Type
Description

globKey*

string

The key for the glob entry to be deleted

workspaceId*

String

The workspace ID for the workspace where the Glob is present

Headers

Name
Type
Description

Content-Type

string

application/json

key

String

API token for the account

domain

String

The domain under which your account exists

true
// Example curl command

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/datastore/$WORKSPACE/glob/item/$GLOBKEY

PreviousSimulation APINextMetrics API

Last updated 2 years ago

Was this helpful?