Skip to content

cloudNativeLabelRules

Cloud native label rules.

Arguments

Argument Type Description
objectType (required) CloudNativeLabelObjectType! Type of managed object on which label rule will be applied.
filters [CloudNativeFilter!] Fields and values according to which rules will be filtered.
sortBy CloudNativeTagRuleSortByFields
sortOrder SortOrder Sorts the order of results.

Returns

GetCloudNativeLabelRulesReply!

Sample

query CloudNativeLabelRules($objectType: CloudNativeLabelObjectType!) {
  cloudNativeLabelRules(objectType: $objectType)
}
{
  "objectType": "GCP_CLOUD_SQL_INSTANCE"
}
{
  "data": {
    "cloudNativeLabelRules": {
      "labelRules": [
        {
          "applyToAllCloudAccounts": true,
          "hasPermissionToModify": true,
          "id": "example-string",
          "name": "example-string",
          "objectType": "ACTIVE_DIRECTORY_DOMAIN"
        }
      ]
    }
  }
}