terraform-provider-octopusdeploy icon indicating copy to clipboard operation
terraform-provider-octopusdeploy copied to clipboard

Provide a data source to access the Tags in a TagSet

Open garkenxian opened this issue 1 year ago • 0 comments

Problem

Currently, there is no way from the octopusdeploy provider (as of 0.13.1) to get a list of the CanonicalTags that are associated with the TagSets. However, this data is returned as part of the standard /tagsets/all API call.

200 Call Result from /tagsets/all

ex:

[
  {
    "Description": "string",
    "Id": "string",
    "LastModifiedBy": "string",
    "LastModifiedOn": "2023-10-25T17:52:22.476Z",
    "Links": {
      "additionalProp1": "string",
      "additionalProp2": "string",
      "additionalProp3": "string"
    },
    "Name": "string",
    "SortOrder": 0,
    "SpaceId": "string",
    "Tags": [
      {
        "CanonicalTagName": "string",
        "Color": "string",
        "Description": "string",
        "Id": "string",
        "Name": "string",
        "SortOrder": 0
      }
    ]
  

Potential Solutions

  • As part of the data.octopusdeploy_tag_sets result, return a tag object array that includes the canonical tag names.
  • Create a separate data source for accessing Tags

garkenxian avatar Oct 25 '23 17:10 garkenxian