Retention

Get the configured default retention policies for the given retention type

get/spaces/{spaceIdentifier}/retentionpolicies

Request

  • Base URL
    https://demo.octopus.app/api
  • URL
    https://demo.octopus.app/api/spaces/{spaceIdentifier}/retentionpolicies
  • Auth
    • API key in header X-Octopus-ApiKey
    • or API key in query parameter ApiKey
    • or API key in header X-NuGet-ApiKey

Path parameters

spaceIdentifierstring required

Identifier (ID or slug) of the space

Query parameters

retentionTypestring required

Response

Returns the configured default retention policy values

Idstring
Namestring
RetentionTypestring
SpaceIdstring

Example response

{
  "RetentionType": "LifecycleRelease",
  "SpaceId": "Spaces-1"
}

Changes

No recorded changes to this operation across all 13 revisions of this API.