batch_disassociate_project_assets

batch_disassociate_project_assets(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.batch_disassociate_project_assets(
    projectId='string',
    assetIds=[
        'string',
    ],
    clientToken='string'
)
Parameters
  • projectId (string) --

    [REQUIRED]

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

  • assetIds (list) --

    [REQUIRED]

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

    • (string) --
  • clientToken (string) --

    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.

    This field is autopopulated if not provided.

Return type

dict

Returns

Response Syntax

{
    'errors': [
        {
            'assetId': 'string',
            'code': 'INTERNAL_FAILURE',
            'message': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • errors (list) --

      A list of associated error information, if any.

      • (dict) --

        Contains error details for the requested associate project asset action.

        • assetId (string) --

          The ID of the asset.

        • code (string) --

          The error code.

        • message (string) --

          The error message.

Exceptions

  • IoTSiteWise.Client.exceptions.InvalidRequestException
  • IoTSiteWise.Client.exceptions.ResourceNotFoundException
  • IoTSiteWise.Client.exceptions.InternalFailureException
  • IoTSiteWise.Client.exceptions.ThrottlingException