• 沒有找到結果。

AWS IoT SiteWise

N/A
N/A
Protected

Academic year: 2022

Share "AWS IoT SiteWise"

Copied!
336
0
0

加載中.... (立即查看全文)

全文

(1)

AWS IoT SiteWise

API Reference

API Version 2019-12-02

(2)

AWS IoT SiteWise: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Welcome ... 1

Actions ... 2

AssociateAssets ... 4

Request Syntax ... 4

URI Request Parameters ... 4

Request Body ... 4

Response Syntax ... 5

Response Elements ... 5

Errors ... 5

See Also ... 6

AssociateTimeSeriesToAssetProperty ... 7

Request Syntax ... 7

URI Request Parameters ... 7

Request Body ... 7

Response Syntax ... 8

Response Elements ... 8

Errors ... 8

See Also ... 8

BatchAssociateProjectAssets ... 10

Request Syntax ... 10

URI Request Parameters ... 10

Request Body ... 10

Response Syntax ... 11

Response Elements ... 11

Errors ... 11

See Also ... 12

BatchDisassociateProjectAssets ... 13

Request Syntax ... 13

URI Request Parameters ... 13

Request Body ... 13

Response Syntax ... 14

Response Elements ... 14

Errors ... 14

See Also ... 15

BatchPutAssetPropertyValue ... 16

Request Syntax ... 16

URI Request Parameters ... 16

Request Body ... 17

Response Syntax ... 17

Response Elements ... 17

Errors ... 17

See Also ... 18

CreateAccessPolicy ... 20

Request Syntax ... 20

URI Request Parameters ... 20

Request Body ... 20

Response Syntax ... 21

Response Elements ... 21

Errors ... 22

See Also ... 23

CreateAsset ... 24

Request Syntax ... 24

URI Request Parameters ... 24

Request Body ... 24

(4)

Response Syntax ... 25

Response Elements ... 25

Errors ... 26

See Also ... 27

CreateAssetModel ... 28

Request Syntax ... 28

URI Request Parameters ... 30

Request Body ... 30

Response Syntax ... 31

Response Elements ... 32

Errors ... 32

See Also ... 33

CreateDashboard ... 35

Request Syntax ... 35

URI Request Parameters ... 35

Request Body ... 35

Response Syntax ... 36

Response Elements ... 36

Errors ... 37

See Also ... 38

CreateGateway ... 39

Request Syntax ... 39

URI Request Parameters ... 39

Request Body ... 39

Response Syntax ... 40

Response Elements ... 40

Errors ... 40

See Also ... 41

CreatePortal ... 42

Request Syntax ... 42

URI Request Parameters ... 42

Request Body ... 42

Response Syntax ... 44

Response Elements ... 45

Errors ... 46

See Also ... 46

CreateProject ... 47

Request Syntax ... 47

URI Request Parameters ... 47

Request Body ... 47

Response Syntax ... 48

Response Elements ... 48

Errors ... 49

See Also ... 49

DeleteAccessPolicy ... 51

Request Syntax ... 51

URI Request Parameters ... 51

Request Body ... 51

Response Syntax ... 51

Response Elements ... 51

Errors ... 51

See Also ... 52

DeleteAsset ... 53

Request Syntax ... 53

URI Request Parameters ... 53

Request Body ... 53

Response Syntax ... 53

(5)

Response Elements ... 54

Errors ... 54

See Also ... 54

DeleteAssetModel ... 56

Request Syntax ... 56

URI Request Parameters ... 56

Request Body ... 56

Response Syntax ... 56

Response Elements ... 57

Errors ... 57

See Also ... 57

DeleteDashboard ... 59

Request Syntax ... 59

URI Request Parameters ... 59

Request Body ... 59

Response Syntax ... 59

Response Elements ... 59

Errors ... 59

See Also ... 60

DeleteGateway ... 61

Request Syntax ... 61

URI Request Parameters ... 61

Request Body ... 61

Response Syntax ... 61

Response Elements ... 61

Errors ... 61

See Also ... 62

DeletePortal ... 63

Request Syntax ... 63

URI Request Parameters ... 63

Request Body ... 63

Response Syntax ... 63

Response Elements ... 63

Errors ... 64

See Also ... 64

DeleteProject ... 66

Request Syntax ... 66

URI Request Parameters ... 66

Request Body ... 66

Response Syntax ... 66

Response Elements ... 66

Errors ... 66

See Also ... 67

DeleteTimeSeries ... 68

Request Syntax ... 68

URI Request Parameters ... 68

Request Body ... 68

Response Syntax ... 69

Response Elements ... 69

Errors ... 69

See Also ... 69

DescribeAccessPolicy ... 71

Request Syntax ... 71

URI Request Parameters ... 71

Request Body ... 71

Response Syntax ... 71

Response Elements ... 72

(6)

Errors ... 73

See Also ... 73

DescribeAsset ... 74

Request Syntax ... 74

URI Request Parameters ... 74

Request Body ... 74

Response Syntax ... 74

Response Elements ... 75

Errors ... 76

See Also ... 77

DescribeAssetModel ... 78

Request Syntax ... 78

URI Request Parameters ... 78

Request Body ... 78

Response Syntax ... 78

Response Elements ... 81

Errors ... 82

See Also ... 82

DescribeAssetProperty ... 84

Request Syntax ... 84

URI Request Parameters ... 84

Request Body ... 84

Response Syntax ... 84

Response Elements ... 86

Errors ... 87

See Also ... 88

DescribeDashboard ... 89

Request Syntax ... 89

URI Request Parameters ... 89

Request Body ... 89

Response Syntax ... 89

Response Elements ... 89

Errors ... 91

See Also ... 91

DescribeDefaultEncryptionConfiguration ... 92

Request Syntax ... 92

URI Request Parameters ... 92

Request Body ... 92

Response Syntax ... 92

Response Elements ... 92

Errors ... 93

See Also ... 93

DescribeGateway ... 94

Request Syntax ... 94

URI Request Parameters ... 94

Request Body ... 94

Response Syntax ... 94

Response Elements ... 94

Errors ... 95

See Also ... 96

DescribeGatewayCapabilityConfiguration ... 97

Request Syntax ... 97

URI Request Parameters ... 97

Request Body ... 97

Response Syntax ... 97

Response Elements ... 98

Errors ... 98

(7)

See Also ... 99

DescribeLoggingOptions ... 100

Request Syntax ... 100

URI Request Parameters ... 100

Request Body ... 100

Response Syntax ... 100

Response Elements ... 100

Errors ... 100

See Also ... 101

DescribePortal ... 102

Request Syntax ... 102

URI Request Parameters ... 102

Request Body ... 102

Response Syntax ... 102

Response Elements ... 103

Errors ... 105

See Also ... 105

DescribeProject ... 107

Request Syntax ... 107

URI Request Parameters ... 107

Request Body ... 107

Response Syntax ... 107

Response Elements ... 107

Errors ... 108

See Also ... 109

DescribeStorageConfiguration ... 110

Request Syntax ... 110

URI Request Parameters ... 110

Request Body ... 110

Response Syntax ... 110

Response Elements ... 110

Errors ... 111

See Also ... 112

DescribeTimeSeries ... 113

Request Syntax ... 113

URI Request Parameters ... 113

Request Body ... 113

Response Syntax ... 113

Response Elements ... 114

Errors ... 115

See Also ... 115

DisassociateAssets ... 117

Request Syntax ... 117

URI Request Parameters ... 117

Request Body ... 117

Response Syntax ... 118

Response Elements ... 118

Errors ... 118

See Also ... 119

DisassociateTimeSeriesFromAssetProperty ... 120

Request Syntax ... 120

URI Request Parameters ... 120

Request Body ... 120

Response Syntax ... 121

Response Elements ... 121

Errors ... 121

See Also ... 121

(8)

GetAssetPropertyAggregates ... 123

Request Syntax ... 123

URI Request Parameters ... 123

Request Body ... 124

Response Syntax ... 124

Response Elements ... 125

Errors ... 125

See Also ... 126

GetAssetPropertyValue ... 127

Request Syntax ... 127

URI Request Parameters ... 127

Request Body ... 127

Response Syntax ... 127

Response Elements ... 128

Errors ... 128

See Also ... 129

GetAssetPropertyValueHistory ... 130

Request Syntax ... 130

URI Request Parameters ... 130

Request Body ... 131

Response Syntax ... 131

Response Elements ... 131

Errors ... 132

See Also ... 132

GetInterpolatedAssetPropertyValues ... 134

Request Syntax ... 134

URI Request Parameters ... 134

Request Body ... 136

Response Syntax ... 136

Response Elements ... 137

Errors ... 137

Examples ... 138

See Also ... 139

ListAccessPolicies ... 140

Request Syntax ... 140

URI Request Parameters ... 140

Request Body ... 141

Response Syntax ... 141

Response Elements ... 141

Errors ... 142

See Also ... 142

ListAssetModels ... 143

Request Syntax ... 143

URI Request Parameters ... 143

Request Body ... 143

Response Syntax ... 143

Response Elements ... 144

Errors ... 144

See Also ... 144

ListAssetRelationships ... 146

Request Syntax ... 146

URI Request Parameters ... 146

Request Body ... 146

Response Syntax ... 146

Response Elements ... 147

Errors ... 147

See Also ... 148

(9)

ListAssets ... 149

Request Syntax ... 149

URI Request Parameters ... 149

Request Body ... 150

Response Syntax ... 150

Response Elements ... 150

Errors ... 151

See Also ... 151

ListAssociatedAssets ... 152

Request Syntax ... 152

URI Request Parameters ... 152

Request Body ... 153

Response Syntax ... 153

Response Elements ... 153

Errors ... 154

See Also ... 154

ListDashboards ... 156

Request Syntax ... 156

URI Request Parameters ... 156

Request Body ... 156

Response Syntax ... 156

Response Elements ... 157

Errors ... 157

See Also ... 157

ListGateways ... 159

Request Syntax ... 159

URI Request Parameters ... 159

Request Body ... 159

Response Syntax ... 159

Response Elements ... 160

Errors ... 160

See Also ... 160

ListPortals ... 162

Request Syntax ... 162

URI Request Parameters ... 162

Request Body ... 162

Response Syntax ... 162

Response Elements ... 163

Errors ... 163

See Also ... 163

ListProjectAssets ... 165

Request Syntax ... 165

URI Request Parameters ... 165

Request Body ... 165

Response Syntax ... 165

Response Elements ... 165

Errors ... 166

See Also ... 166

ListProjects ... 168

Request Syntax ... 168

URI Request Parameters ... 168

Request Body ... 168

Response Syntax ... 168

Response Elements ... 169

Errors ... 169

See Also ... 169

ListTagsForResource ... 171

(10)

Request Syntax ... 171

URI Request Parameters ... 171

Request Body ... 171

Response Syntax ... 171

Response Elements ... 171

Errors ... 172

See Also ... 172

ListTimeSeries ... 174

Request Syntax ... 174

URI Request Parameters ... 174

Request Body ... 174

Response Syntax ... 174

Response Elements ... 175

Errors ... 175

See Also ... 176

PutDefaultEncryptionConfiguration ... 177

Request Syntax ... 177

URI Request Parameters ... 177

Request Body ... 177

Response Syntax ... 177

Response Elements ... 178

Errors ... 178

See Also ... 179

PutLoggingOptions ... 180

Request Syntax ... 180

URI Request Parameters ... 180

Request Body ... 180

Response Syntax ... 180

Response Elements ... 180

Errors ... 180

See Also ... 181

PutStorageConfiguration ... 182

Request Syntax ... 182

URI Request Parameters ... 182

Request Body ... 182

Response Syntax ... 183

Response Elements ... 183

Errors ... 184

See Also ... 185

TagResource ... 186

Request Syntax ... 186

URI Request Parameters ... 186

Request Body ... 186

Response Syntax ... 186

Response Elements ... 186

Errors ... 187

See Also ... 188

UntagResource ... 189

Request Syntax ... 189

URI Request Parameters ... 189

Request Body ... 189

Response Syntax ... 189

Response Elements ... 189

Errors ... 189

See Also ... 190

UpdateAccessPolicy ... 191

Request Syntax ... 191

(11)

URI Request Parameters ... 191

Request Body ... 191

Response Syntax ... 192

Response Elements ... 192

Errors ... 192

See Also ... 193

UpdateAsset ... 194

Request Syntax ... 194

URI Request Parameters ... 194

Request Body ... 194

Response Syntax ... 195

Response Elements ... 195

Errors ... 195

See Also ... 196

UpdateAssetModel ... 197

Request Syntax ... 197

URI Request Parameters ... 199

Request Body ... 199

Response Syntax ... 200

Response Elements ... 201

Errors ... 201

See Also ... 202

UpdateAssetProperty ... 203

Request Syntax ... 203

URI Request Parameters ... 203

Request Body ... 203

Response Syntax ... 204

Response Elements ... 204

Errors ... 204

See Also ... 205

UpdateDashboard ... 206

Request Syntax ... 206

URI Request Parameters ... 206

Request Body ... 206

Response Syntax ... 207

Response Elements ... 207

Errors ... 207

See Also ... 208

UpdateGateway ... 209

Request Syntax ... 209

URI Request Parameters ... 209

Request Body ... 209

Response Syntax ... 209

Response Elements ... 209

Errors ... 210

See Also ... 210

UpdateGatewayCapabilityConfiguration ... 211

Request Syntax ... 211

URI Request Parameters ... 211

Request Body ... 211

Response Syntax ... 212

Response Elements ... 212

Errors ... 212

See Also ... 213

UpdatePortal ... 214

Request Syntax ... 214

URI Request Parameters ... 214

(12)

Request Body ... 214

Response Syntax ... 216

Response Elements ... 216

Errors ... 216

See Also ... 217

UpdateProject ... 218

Request Syntax ... 218

URI Request Parameters ... 218

Request Body ... 218

Response Syntax ... 219

Response Elements ... 219

Errors ... 219

See Also ... 219

Data Types ... 221

AccessPolicySummary ... 223

Contents ... 223

See Also ... 224

AggregatedValue ... 225

Contents ... 225

See Also ... 225

Aggregates ... 226

Contents ... 226

See Also ... 226

Alarms ... 228

Contents ... 228

See Also ... 228

AssetCompositeModel ... 229

Contents ... 229

See Also ... 229

AssetErrorDetails ... 231

Contents ... 231

See Also ... 231

AssetHierarchy ... 232

Contents ... 232

See Also ... 232

AssetHierarchyInfo ... 233

Contents ... 233

See Also ... 233

AssetModelCompositeModel ... 234

Contents ... 234

See Also ... 234

AssetModelCompositeModelDefinition ... 236

Contents ... 236

See Also ... 236

AssetModelHierarchy ... 238

Contents ... 238

See Also ... 238

AssetModelHierarchyDefinition ... 239

Contents ... 239

See Also ... 239

AssetModelProperty ... 240

Contents ... 240

See Also ... 241

AssetModelPropertyDefinition ... 242

Contents ... 242

See Also ... 243

AssetModelStatus ... 244

(13)

Contents ... 244

See Also ... 244

AssetModelSummary ... 245

Contents ... 245

See Also ... 246

AssetProperty ... 247

Contents ... 247

See Also ... 248

AssetPropertyValue ... 249

Contents ... 249

See Also ... 249

AssetRelationshipSummary ... 250

Contents ... 250

See Also ... 250

AssetStatus ... 251

Contents ... 251

See Also ... 251

AssetSummary ... 252

Contents ... 252

See Also ... 253

AssociatedAssetsSummary ... 254

Contents ... 254

See Also ... 255

Attribute ... 256

Contents ... 256

See Also ... 256

BatchPutAssetPropertyError ... 257

Contents ... 257

See Also ... 257

BatchPutAssetPropertyErrorEntry ... 258

Contents ... 258

See Also ... 258

CompositeModelProperty ... 259

Contents ... 259

See Also ... 259

ConfigurationErrorDetails ... 260

Contents ... 260

See Also ... 260

ConfigurationStatus ... 261

Contents ... 261

See Also ... 261

CustomerManagedS3Storage ... 262

Contents ... 262

See Also ... 262

DashboardSummary ... 263

Contents ... 263

See Also ... 263

DetailedError ... 265

Contents ... 265

See Also ... 265

ErrorDetails ... 266

Contents ... 266

See Also ... 266

ExpressionVariable ... 267

Contents ... 267

See Also ... 267

ForwardingConfig ... 268

(14)

Contents ... 268

See Also ... 268

GatewayCapabilitySummary ... 269

Contents ... 269

See Also ... 269

GatewayPlatform ... 270

Contents ... 270

See Also ... 270

GatewaySummary ... 271

Contents ... 271

See Also ... 272

Greengrass ... 273

Contents ... 273

See Also ... 273

GreengrassV2 ... 274

Contents ... 274

See Also ... 274

GroupIdentity ... 275

Contents ... 275

See Also ... 275

IAMRoleIdentity ... 276

Contents ... 276

See Also ... 276

IAMUserIdentity ... 277

Contents ... 277

See Also ... 277

Identity ... 278

Contents ... 278

See Also ... 278

Image ... 279

Contents ... 279

See Also ... 279

ImageFile ... 280

Contents ... 280

See Also ... 280

ImageLocation ... 281

Contents ... 281

See Also ... 281

InterpolatedAssetPropertyValue ... 282

Contents ... 282

See Also ... 282

LoggingOptions ... 283

Contents ... 283

See Also ... 283

Measurement ... 284

Contents ... 284

See Also ... 284

MeasurementProcessingConfig ... 285

Contents ... 285

See Also ... 285

Metric ... 286

Contents ... 286

See Also ... 286

MetricProcessingConfig ... 288

Contents ... 288

See Also ... 288

MetricWindow ... 289

(15)

Contents ... 289

See Also ... 289

MonitorErrorDetails ... 290

Contents ... 290

See Also ... 290

MultiLayerStorage ... 291

Contents ... 291

See Also ... 291

PortalResource ... 292

Contents ... 292

See Also ... 292

PortalStatus ... 293

Contents ... 293

See Also ... 293

PortalSummary ... 294

Contents ... 294

See Also ... 295

ProjectResource ... 296

Contents ... 296

See Also ... 296

ProjectSummary ... 297

Contents ... 297

See Also ... 297

Property ... 299

Contents ... 299

See Also ... 300

PropertyNotification ... 301

Contents ... 301

See Also ... 301

PropertyType ... 302

Contents ... 302

See Also ... 302

PutAssetPropertyValueEntry ... 303

Contents ... 303

See Also ... 304

Resource ... 305

Contents ... 305

See Also ... 305

RetentionPeriod ... 306

Contents ... 306

See Also ... 306

TimeInNanos ... 307

Contents ... 307

See Also ... 307

TimeSeriesSummary ... 308

Contents ... 308

See Also ... 309

Transform ... 310

Contents ... 310

See Also ... 310

TransformProcessingConfig ... 311

Contents ... 311

See Also ... 311

TumblingWindow ... 312

Contents ... 312

See Also ... 313

UserIdentity ... 314

(16)

Contents ... 314

See Also ... 314

VariableValue ... 315

Contents ... 315

See Also ... 315

Variant ... 316

Contents ... 316

See Also ... 316

Common Parameters ... 317

Common Errors ... 319

(17)

Welcome

Welcome to the AWS IoT SiteWise API Reference. AWS IoT SiteWise is an AWS service that connects Industrial Internet of Things (IIoT) devices to the power of the AWS Cloud. For more information, see the AWS IoT SiteWise User Guide. For information about AWS IoT SiteWise quotas, see Quotas in the AWS IoT SiteWise User Guide.

This document was last published on March 6, 2022.

(18)

Actions

The following actions are supported:

• AssociateAssets (p. 4)

• AssociateTimeSeriesToAssetProperty (p. 7)

• BatchAssociateProjectAssets (p. 10)

• BatchDisassociateProjectAssets (p. 13)

• BatchPutAssetPropertyValue (p. 16)

• CreateAccessPolicy (p. 20)

• CreateAsset (p. 24)

• CreateAssetModel (p. 28)

• CreateDashboard (p. 35)

• CreateGateway (p. 39)

• CreatePortal (p. 42)

• CreateProject (p. 47)

• DeleteAccessPolicy (p. 51)

• DeleteAsset (p. 53)

• DeleteAssetModel (p. 56)

• DeleteDashboard (p. 59)

• DeleteGateway (p. 61)

• DeletePortal (p. 63)

• DeleteProject (p. 66)

• DeleteTimeSeries (p. 68)

• DescribeAccessPolicy (p. 71)

• DescribeAsset (p. 74)

• DescribeAssetModel (p. 78)

• DescribeAssetProperty (p. 84)

• DescribeDashboard (p. 89)

• DescribeDefaultEncryptionConfiguration (p. 92)

• DescribeGateway (p. 94)

• DescribeGatewayCapabilityConfiguration (p. 97)

• DescribeLoggingOptions (p. 100)

• DescribePortal (p. 102)

• DescribeProject (p. 107)

• DescribeStorageConfiguration (p. 110)

• DescribeTimeSeries (p. 113)

• DisassociateAssets (p. 117)

• DisassociateTimeSeriesFromAssetProperty (p. 120)

• GetAssetPropertyAggregates (p. 123)

• GetAssetPropertyValue (p. 127)

• GetAssetPropertyValueHistory (p. 130)

• GetInterpolatedAssetPropertyValues (p. 134)

• ListAccessPolicies (p. 140)

(19)

• ListAssetModels (p. 143)

• ListAssetRelationships (p. 146)

• ListAssets (p. 149)

• ListAssociatedAssets (p. 152)

• ListDashboards (p. 156)

• ListGateways (p. 159)

• ListPortals (p. 162)

• ListProjectAssets (p. 165)

• ListProjects (p. 168)

• ListTagsForResource (p. 171)

• ListTimeSeries (p. 174)

• PutDefaultEncryptionConfiguration (p. 177)

• PutLoggingOptions (p. 180)

• PutStorageConfiguration (p. 182)

• TagResource (p. 186)

• UntagResource (p. 189)

• UpdateAccessPolicy (p. 191)

• UpdateAsset (p. 194)

• UpdateAssetModel (p. 197)

• UpdateAssetProperty (p. 203)

• UpdateDashboard (p. 206)

• UpdateGateway (p. 209)

• UpdateGatewayCapabilityConfiguration (p. 211)

• UpdatePortal (p. 214)

• UpdateProject (p. 218)

(20)

AssociateAssets

AssociateAssets

Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. For more information, see Associating assets in the AWS IoT SiteWise User Guide.

Request Syntax

POST /assets/assetId/associate HTTP/1.1 Content-type: application/json

{ "childAssetId": "string", "clientToken": "string", "hierarchyId": "string"

}

URI Request Parameters

The request uses the following URI parameters.

assetId (p. 4)

The ID of the parent asset.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

childAssetId (p. 4)

The ID of the child asset to be associated.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes clientToken (p. 4)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

(21)

Response Syntax

Required: No hierarchyId (p. 4)

The ID of a hierarchy in the parent asset's model. Hierarchies allow different groupings of assets to be formed that all come from the same asset model. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

ConflictingOperationException

Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.

HTTP Status Code: 409 InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 LimitExceededException

You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 410 ResourceNotFoundException

The requested resource can't be found.

(22)

See Also

HTTP Status Code: 404 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(23)

AssociateTimeSeriesToAssetProperty

AssociateTimeSeriesToAssetProperty

Associates a time series (data stream) with an asset property.

Request Syntax

POST /timeseries/associate/?alias=alias&assetId=assetId&propertyId=propertyId HTTP/1.1 Content-type: application/json

{

"clientToken": "string"

}

URI Request Parameters

The request uses the following URI parameters.

alias (p. 7)

The alias that identifies the time series.

Length Constraints: Minimum length of 1.

Pattern: [^\u0000-\u001F\u007F]+

Required: Yes assetId (p. 7)

The ID of the asset in which the asset property was created.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes propertyId (p. 7)

The ID of the asset property.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

clientToken (p. 7)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

(24)

Response Syntax

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

ConflictingOperationException

Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.

HTTP Status Code: 409 InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

(25)

See Also

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(26)

BatchAssociateProjectAssets

BatchAssociateProjectAssets

Associates a group (batch) of assets with an AWS IoT SiteWise Monitor project.

Request Syntax

POST /projects/projectId/assets/associate HTTP/1.1 Content-type: application/json

{

"assetIds": [ "string" ], "clientToken": "string"

}

URI Request Parameters

The request uses the following URI parameters.

projectId (p. 10)

The ID of the project to which to associate the assets.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

assetIds (p. 10)

The IDs of the assets to be associated to the project.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 100 items.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes clientToken (p. 10)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

(27)

Response Syntax

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"errors": [ {

"assetId": "string", "code": "string", "message": "string"

} ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

errors (p. 11)

A list of associated error information, if any.

Type: Array of AssetErrorDetails (p. 231) objects

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 LimitExceededException

You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 410 ResourceNotFoundException

The requested resource can't be found.

(28)

See Also

HTTP Status Code: 404 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(29)

BatchDisassociateProjectAssets

BatchDisassociateProjectAssets

Disassociates a group (batch) of assets from an AWS IoT SiteWise Monitor project.

Request Syntax

POST /projects/projectId/assets/disassociate HTTP/1.1 Content-type: application/json

{

"assetIds": [ "string" ], "clientToken": "string"

}

URI Request Parameters

The request uses the following URI parameters.

projectId (p. 13)

The ID of the project from which to disassociate the assets.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

assetIds (p. 13)

The IDs of the assets to be disassociated from the project.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 100 items.

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes clientToken (p. 13)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

(30)

Response Syntax

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"errors": [ {

"assetId": "string", "code": "string", "message": "string"

} ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

errors (p. 14)

A list of associated error information, if any.

Type: Array of AssetErrorDetails (p. 231) objects

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

(31)

See Also

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(32)

BatchPutAssetPropertyValue

BatchPutAssetPropertyValue

Sends a list of asset property values to AWS IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API in the AWS IoT SiteWise User Guide.

To identify an asset property, you must specify one of the following:

• The assetId and propertyId of an asset property.

• A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/

temperature). To define an asset property's alias, see UpdateAssetProperty.

Important

With respect to Unix epoch time, AWS IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 10 minutes in the future. AWS IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException error.

For each asset property, AWS IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. For example, if you store a TQV {T1, GOOD, V1}, then storing {T1, GOOD, V2} replaces the existing TQV.

AWS IoT SiteWise authorizes access to each BatchPutAssetPropertyValue entry individually. For more information, see BatchPutAssetPropertyValue authorization in the AWS IoT SiteWise User Guide.

Request Syntax

POST /properties HTTP/1.1 Content-type: application/json { "entries": [

{

"assetId": "string", "entryId": "string", "propertyAlias": "string", "propertyId": "string", "propertyValues": [ {

"quality": "string", "timestamp": {

"offsetInNanos": number, "timeInSeconds": number },

"value": {

"booleanValue": boolean, "doubleValue": number, "integerValue": number, "stringValue": "string"

} } ] } ]}

URI Request Parameters

The request does not use any URI parameters.

(33)

Request Body

Request Body

The request accepts the following data in JSON format.

entries (p. 16)

The list of asset property value entries for the batch put request. You can specify up to 10 entries per request.

Type: Array of PutAssetPropertyValueEntry (p. 303) objects Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"errorEntries": [ {

"entryId": "string", "errors": [

{

"errorCode": "string", "errorMessage": "string", "timestamps": [

{

"offsetInNanos": number, "timeInSeconds": number }

] } ] } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

errorEntries (p. 17)

A list of the errors (if any) associated with the batch put request. Each error entry contains the entryId of the entry that failed.

Type: Array of BatchPutAssetPropertyErrorEntry (p. 258) objects

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

(34)

See Also

ConflictingOperationException

Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.

HTTP Status Code: 409 InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 LimitExceededException

You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 410 ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404 ServiceUnavailableException

The requested service is unavailable.

HTTP Status Code: 503 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

(35)

See Also

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(36)

CreateAccessPolicy

CreateAccessPolicy

Creates an access policy that grants the specified identity (AWS SSO user, AWS SSO group, or IAM user) access to the specified AWS IoT SiteWise Monitor portal or project resource.

Request Syntax

POST /access-policies HTTP/1.1 Content-type: application/json { "accessPolicyIdentity": { "group": {

"id": "string"

},

"iamRole": { "arn": "string"

},

"iamUser": { "arn": "string"

},

"user": { "id": "string"

} },

"accessPolicyPermission": "string", "accessPolicyResource": {

"portal": { "id": "string"

},

"project": { "id": "string"

} },

"clientToken": "string", "tags": {

"string" : "string"

}}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

accessPolicyIdentity (p. 20)

The identity for this access policy. Choose an AWS SSO user, an AWS SSO group, or an IAM user.

Type: Identity (p. 278) object Required: Yes

accessPolicyPermission (p. 20)

The permission level for this access policy. Note that a project ADMINISTRATOR is also known as a project owner.

(37)

Response Syntax

Type: String

Valid Values: ADMINISTRATOR | VIEWER Required: Yes

accessPolicyResource (p. 20)

The AWS IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.

Type: Resource (p. 305) object Required: Yes

clientToken (p. 20)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

Required: No tags (p. 20)

A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.

Type: String to string map

Map Entries: Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 201

Content-type: application/json { "accessPolicyArn": "string", "accessPolicyId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in JSON format by the service.

accessPolicyArn (p. 21)

The ARN of the access policy, which has the following format.

(38)

Errors

arn:${Partition}:iotsitewise:${Region}:${Account}:access-policy/

${AccessPolicyId}

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: .*

accessPolicyId (p. 21)

The ID of the access policy.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 LimitExceededException

You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 410 ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

(39)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(40)

CreateAsset

CreateAsset

Creates an asset from an existing asset model. For more information, see Creating assets in the AWS IoT SiteWise User Guide.

Request Syntax

POST /assets HTTP/1.1

Content-type: application/json { "assetModelId": "string", "assetName": "string", "clientToken": "string", "tags": {

"string" : "string"

} }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

assetModelId (p. 24)

The ID of the asset model from which to create the asset.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes assetName (p. 24)

A unique, friendly name for the asset.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [^\u0000-\u001F\u007F]+

Required: Yes clientToken (p. 24)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

(41)

Response Syntax

Pattern: \S{36,64}

Required: No tags (p. 24)

A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.

Type: String to string map

Map Entries: Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 202

Content-type: application/json { "assetArn": "string", "assetId": "string", "assetStatus": { "error": {

"code": "string", "details": [ {

"code": "string", "message": "string"

} ],

"message": "string"

},

"state": "string"

}}

Response Elements

If the action is successful, the service sends back an HTTP 202 response.

The following data is returned in JSON format by the service.

assetArn (p. 25)

The ARN of the asset, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: .*

(42)

Errors

assetId (p. 25)

The ID of the asset. This ID uniquely identifies the asset within AWS IoT SiteWise and can be used with other AWS IoT SiteWise APIs.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

assetStatus (p. 25)

The status of the asset, which contains a state (CREATING after successfully calling this operation) and any error message.

Type: AssetStatus (p. 251) object

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

ConflictingOperationException

Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.

HTTP Status Code: 409 InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 LimitExceededException

You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 410 ResourceAlreadyExistsException

The resource already exists.

HTTP Status Code: 409 ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404

(43)

See Also

ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(44)

CreateAssetModel

CreateAssetModel

Creates an asset model from specified property and hierarchy definitions. You create assets from asset models. With asset models, you can easily create assets of the same type that have standardized definitions. Each asset created from a model inherits the asset model's property and hierarchy

definitions. For more information, see Defining asset models in the AWS IoT SiteWise User Guide.

Request Syntax

POST /asset-models HTTP/1.1 Content-type: application/json { "assetModelCompositeModels": [ {

"description": "string", "name": "string", "properties": [ {

"dataType": "string", "dataTypeSpec": "string", "name": "string",

"type": {

"attribute": {

"defaultValue": "string"

},

"measurement": {

"processingConfig": { "forwardingConfig": { "state": "string"

} } },

"metric": {

"expression": "string", "processingConfig": {

"computeLocation": "string"

},

"variables": [ {

"name": "string", "value": {

"hierarchyId": "string", "propertyId": "string"

} } ],

"window": { "tumbling": {

"interval": "string", "offset": "string"

} } },

"transform": {

"expression": "string", "processingConfig": {

"computeLocation": "string", "forwardingConfig": { "state": "string"

} },

(45)

Request Syntax

"variables": [ {

"name": "string", "value": {

"hierarchyId": "string", "propertyId": "string"

} } ] } },

"unit": "string"

} ],

"type": "string"

} ],

"assetModelDescription": "string", "assetModelHierarchies": [ {

"childAssetModelId": "string", "name": "string"

} ],

"assetModelName": "string", "assetModelProperties": [ {

"dataType": "string", "dataTypeSpec": "string", "name": "string",

"type": {

"attribute": {

"defaultValue": "string"

},

"measurement": {

"processingConfig": { "forwardingConfig": { "state": "string"

} } },

"metric": {

"expression": "string", "processingConfig": {

"computeLocation": "string"

},

"variables": [ {

"name": "string", "value": {

"hierarchyId": "string", "propertyId": "string"

} } ],

"window": { "tumbling": {

"interval": "string", "offset": "string"

} } },

"transform": {

"expression": "string", "processingConfig": {

"computeLocation": "string",

(46)

URI Request Parameters

"forwardingConfig": { "state": "string"

} },

"variables": [ {

"name": "string", "value": {

"hierarchyId": "string", "propertyId": "string"

} } ] } },

"unit": "string"

} ],

"clientToken": "string", "tags": {

"string" : "string"

}}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

assetModelCompositeModels (p. 28)

The composite asset models that are part of this asset model. Composite asset models are asset models that contain specific properties. Each composite model has a type that defines the properties that the composite model supports. Use composite asset models to define alarms on this asset model.

Type: Array of AssetModelCompositeModelDefinition (p. 236) objects Required: No

assetModelDescription (p. 28) A description for the asset model.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: [^\u0000-\u001F\u007F]+

Required: No

assetModelHierarchies (p. 28)

The hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the AWS IoT SiteWise User Guide.

You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide.

(47)

Response Syntax

Type: Array of AssetModelHierarchyDefinition (p. 239) objects Required: No

assetModelName (p. 28)

A unique, friendly name for the asset model.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [^\u0000-\u001F\u007F]+

Required: Yes

assetModelProperties (p. 28)

The property definitions of the asset model. For more information, see Asset properties in the AWS IoT SiteWise User Guide.

You can specify up to 200 properties per asset model. For more information, see Quotas in the AWS IoT SiteWise User Guide.

Type: Array of AssetModelPropertyDefinition (p. 242) objects Required: No

clientToken (p. 28)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

Required: No tags (p. 28)

A list of key-value pairs that contain metadata for the asset model. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.

Type: String to string map

Map Entries: Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 202

Content-type: application/json {

(48)

Response Elements

"assetModelArn": "string", "assetModelId": "string", "assetModelStatus": { "error": {

"code": "string", "details": [ {

"code": "string", "message": "string"

} ],

"message": "string"

},

"state": "string"

}}

Response Elements

If the action is successful, the service sends back an HTTP 202 response.

The following data is returned in JSON format by the service.

assetModelArn (p. 31)

The ARN of the asset model, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/

${AssetModelId}

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: .*

assetModelId (p. 31)

The ID of the asset model. You can use this ID when you call other AWS IoT SiteWise APIs.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

assetModelStatus (p. 31)

The status of the asset model, which contains a state (CREATING after successfully calling this operation) and any error message.

Type: AssetModelStatus (p. 244) object

Errors

For information about the errors that are common to all actions, see Common Errors (p. 319).

ConflictingOperationException

Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.

(49)

See Also

HTTP Status Code: 409 InternalFailureException

AWS IoT SiteWise can't process your request right now. Try again later.

HTTP Status Code: 500 InvalidRequestException

The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.

HTTP Status Code: 400 LimitExceededException

You've reached the limit for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 410 ResourceAlreadyExistsException

The resource already exists.

HTTP Status Code: 409 ResourceNotFoundException

The requested resource can't be found.

HTTP Status Code: 404 ThrottlingException

Your request exceeded a rate limit. For example, you might have exceeded the number of AWS IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.

For more information, see Quotas in the AWS IoT SiteWise User Guide.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(50)

See Also

(51)

CreateDashboard

CreateDashboard

Creates a dashboard in an AWS IoT SiteWise Monitor project.

Request Syntax

POST /dashboards HTTP/1.1 Content-type: application/json { "clientToken": "string",

"dashboardDefinition": "string", "dashboardDescription": "string", "dashboardName": "string", "projectId": "string", "tags": {

"string" : "string"

}}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

clientToken (p. 35)

A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.

Don't reuse this client token if a new idempotent request is required.

Type: String

Length Constraints: Minimum length of 36. Maximum length of 64.

Pattern: \S{36,64}

Required: No

dashboardDefinition (p. 35)

The dashboard definition specified in a JSON literal. For detailed information, see Creating dashboards (CLI) in the AWS IoT SiteWise User Guide.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 204800.

Pattern: .+

Required: Yes

dashboardDescription (p. 35) A description for the dashboard.

Type: String

(52)

Response Syntax

Length Constraints: Minimum length of 1. Maximum length of 2048.

Pattern: [^\u0000-\u001F\u007F]+

Required: No dashboardName (p. 35)

A friendly name for the dashboard.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: [^\u0000-\u001F\u007F]+

Required: Yes projectId (p. 35)

The ID of the project in which to create the dashboard.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Required: Yes tags (p. 35)

A list of key-value pairs that contain metadata for the dashboard. For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide.

Type: String to string map

Map Entries: Maximum number of 50 items.

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Required: No

Response Syntax

HTTP/1.1 201

Content-type: application/json {

"dashboardArn": "string", "dashboardId": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in JSON format by the service.

參考文獻

相關文件

In the second quarter of 2003, the average number of completed units in each building was 11, which was lower than the average value for 2002 (15 units). a The index of

You can leave this field blank if number of the certificate on notifying consecutive employment of the foreigner for conversion expiration is attached. 十一、

(A) South Korea sends the second largest number of students to America.. (B) India has the largest number of international students in

If the best number of degrees of freedom for pure error can be specified, we might use some standard optimality criterion to obtain an optimal design for the given model, and

• When a number can not be represented exactly with the fixed finite number of digits in a computer, a near-by floating-point number is chosen for approximate

For R-K methods, the relationship between the number of (function) evaluations per step and the order of LTE is shown in the following

Each course at the Institute is assigned a number of units corresponding to the total number of hours per week devoted to that subject, including classwork, laboratory, and the

y A stochastic process is a collection of "similar" random variables ordered over time.. variables ordered