Skip to content

Commit 2bb6fad

Browse files
authored
Updated Description to write REVOKING method (#1295)
1 parent be68edb commit 2bb6fad

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/resources/platform_delegatetoken.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
page_title: "harness_platform_delegatetoken Resource - terraform-provider-harness"
44
subcategory: "Next Gen"
55
description: |-
6-
Resource for creating delegate tokens. Note that delegate tokens cannot be updated, they can only be created or revoked. When a delegate token is 'deleted' in Terraform, it is actually revoked in Harness. Revoked tokens immediately stop functioning and are only purged after 30 days, so you cannot recreate a token with the same name within that period.
6+
Resource for creating delegate tokens. Delegate tokens can be created and revoked. Revoked tokens immediately stop functioning and are only purged after 30 days, meaning you cannot recreate a token with the same name within that period.
7+
To revoke a token, set token_status field to "REVOKED".
78
---
89

910
# harness_platform_delegatetoken (Resource)
1011

11-
Resource for creating delegate tokens. Note that delegate tokens cannot be updated, they can only be created or revoked. When a delegate token is 'deleted' in Terraform, it is actually revoked in Harness. Revoked tokens immediately stop functioning and are only purged after 30 days, so you cannot recreate a token with the same name within that period.
12+
Resource for creating delegate tokens. Delegate tokens can be created and revoked. Revoked tokens immediately stop functioning and are only purged after 30 days, meaning you cannot recreate a token with the same name within that period.
13+
To revoke a token, set token_status field to "REVOKED".
1214

1315
## Example Usage
1416

internal/service/platform/delegate_token/resource_delegateToken.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func ResourceDelegateToken() *schema.Resource {
1818
resource := &schema.Resource{
19-
Description: "Resource for creating delegate tokens. Note that delegate tokens cannot be updated, they can only be created or revoked. When a delegate token is 'deleted' in Terraform, it is actually revoked in Harness. Revoked tokens immediately stop functioning and are only purged after 30 days, so you cannot recreate a token with the same name within that period.",
19+
Description: "Resource for creating delegate tokens. Delegate tokens can be created and revoked. Revoked tokens immediately stop functioning and are only purged after 30 days, meaning you cannot recreate a token with the same name within that period.\nTo revoke a token, set token_status field to \"REVOKED\".",
2020

2121
ReadContext: resourceDelegateTokenRead,
2222
CreateContext: resourceDelegateTokenCreate,

0 commit comments

Comments
 (0)