Skip to content

The "catalystcenter_global_credential" v2 incorrectly mandates ID for credentials creation #17

@pnpdev10

Description

@pnpdev10

Prerequisites

  • Have you tested the operation in the API directly?
  • Do you have the latest Terraform provider version?
  • Review the compatibility matrix before opening an issue.

Describe the bug
The "catalystcenter_global_credential" v2 incorrectly mandates ID for credentials creation. It should require only for deletion.

Image Image
bash-4.4$ terraform plan
╷
│ Error: Missing required argument
│ 
│   on main.tf line 29, in resource "catalystcenter_global_credential" "credentials_v2":
│   29:   parameters {
│ 
│ The argument "id" is required, but no definition was found.
╵
bash-4.4$ 

Expected behavior
Credential ID should only be required for credentials deletion. It should not be required for creation.

Screenshots
Please provide an screenshot of the successful API call with cuRL, Postman, etc.

Image

Environment (please complete the following information):

  • Cisco Catalyst Center version and patch: 2.3.7.9-75335
  • Terraform version: v1.12.2 (latest)
  • Cisco Catalyst Center provider version: 1.2.0-beta (latest)
  • OS Version: RHEL 8.8 (Ootpa)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions