Refer README.md's Build the provider section
You should have API access to the Citrix ADM Service. Below are the steps to get the API access.
By the above steps, you should have got
customer_id
,client_id
andclient_secret
for the API access.
-
Go to the respective example folder in the examples folder. Eg: Let's assume you need to crate a NS DEVICE PROFILE
cd examples/resources/citrixadm_ns_device_profile
-
Configure the
provider.tf
file - There are two ways- Provide
host
,host_location
,customer_id
,client_id
andclient_secret
in theprovider.tf
file, OR - Have the respective ENVIRNMENT variables set:
CITRIXADM_HOST
,CITRIXADM_HOST_LOCATION
,CITRIXADM_CUSTOMER_ID
,CITRIXADM_CLIENT_ID
andCITRIXADM_CLIENT_SECRET
- Provide
-
Run the
terraform init
command. -
Run the
terraform plan
command. -
Run the
terraform apply
command. (If you want to destroy the resource, runterraform destroy
command).