How to Update Data Connect Storage Details via GraphQL
search cancel

How to Update Data Connect Storage Details via GraphQL

book

Article ID: 451685

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

To update your storage configuration, use the updateDataConnectStorageDetails mutation in the GraphQL Explorer.

Resolution

  1. Navigate to the GraphQL Explorer.
    https://apps.cloudhealthtech.com/ui/graphql-explorer/

  2. Copy and paste the following mutation query into the explorer:

    mutation updateExistingStorageConfigDetails($input: UpdateDataConnectStorageDetailsInput!) {
      updateDataConnectStorageDetails(input: $input) {
        dataConnectStorageDetails {
          id
          type
          createdAt
          updatedAt
          billStartTime
          billEndTime
          credentialCrn
          dataConnectConfigCrn
          status
          storageProperties {
            awsS3 {
              s3BucketName
              s3BucketReportPath
              s3ReportName
              s3BucketRegion
            }
          }
        }
      }
    }

  3. Update the input variables below with your specific configuration details (ID, CRNs, bucket name, and region) and paste them into the "Variables" section of the GraphQL Explorer:

    {

        "input": {

            "id": "crn:xx:data-connect-config-storage-details/xxxx",

            "storageLocation": "AWS_S3",

            "billStartTime": "2025-05-01T00:00:00Z",

            "billEndTime": "9999-05-30T23:59:59Z",

            "credentialCrn": "crn:xxx:credential/aws-s3:xxxx",

            "storageProperties": {

                "awsS3": {

                    "s3BucketName": "xxxxxx",

                    "s3BucketReportPath": "/rxxxxx-hourly-cur",

                    "s3ReportName": "xxxx-hourly-cur",

                    "s3BucketRegion": "us-east-1"

                }

            }

        }

    }




  4. Execute the mutation to apply the updates.