@@ -44,6 +44,11 @@ func resourceSumologicToken() *schema.Resource {
4444 Required : true ,
4545 ValidateFunc : validation .StringInSlice ([]string {"CollectorRegistration" , "CollectorRegistrationTokenResponse" }, false ),
4646 },
47+
48+ "encoded_token_and_url" : {
49+ Type : schema .TypeString ,
50+ Computed : true ,
51+ },
4752 },
4853 }
4954}
@@ -59,6 +64,7 @@ func resourceSumologicTokenCreate(d *schema.ResourceData, meta interface{}) erro
5964 }
6065
6166 d .SetId (id )
67+ d .Set ("encoded_token_and_url" , token .EncodedTokenAndUrl )
6268 }
6369
6470 return resourceSumologicTokenRead (d , meta )
@@ -83,6 +89,7 @@ func resourceSumologicTokenRead(d *schema.ResourceData, meta interface{}) error
8389 d .Set ("status" , token .Status )
8490 d .Set ("description" , token .Description )
8591 d .Set ("version" , token .Version )
92+ d .Set ("encoded_token_and_url" , token .EncodedTokenAndUrl )
8693
8794 return nil
8895}
@@ -108,11 +115,12 @@ func resourceSumologicTokenUpdate(d *schema.ResourceData, meta interface{}) erro
108115func resourceToToken (d * schema.ResourceData ) Token {
109116
110117 return Token {
111- Name : d .Get ("name" ).(string ),
112- ID : d .Id (),
113- Description : d .Get ("description" ).(string ),
114- Version : d .Get ("version" ).(int ),
115- Type : d .Get ("type" ).(string ),
116- Status : d .Get ("status" ).(string ),
118+ Name : d .Get ("name" ).(string ),
119+ ID : d .Id (),
120+ Description : d .Get ("description" ).(string ),
121+ Version : d .Get ("version" ).(int ),
122+ Type : d .Get ("type" ).(string ),
123+ Status : d .Get ("status" ).(string ),
124+ EncodedTokenAndUrl : d .Get ("encoded_token_and_url" ).(string ),
117125 }
118126}
0 commit comments