OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Retrieves the specified tag default.
/// </summary>
/// <param name="getRequest"></param>
/// <returns></returns>
Retrieves the specified tag default.
Retrieves the specified tag default .
public GetTagDefaultResponse GetTagDefault(GetTagDefaultRequest getRequest)
        {
            var uri = new Uri($"{GetEndPoint(IdentityServices.TagDefault, this.Region)}/{getRequest.TagDefaultId}");
            using (var webResponse = this.RestClient.Get(uri))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new GetTagDefaultResponse()
                {
                    TagDefault = JsonSerializer.Deserialize<TagDefault>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id"),
                    ETag = webResponse.Headers.Get("ETag")
                };
            }
        }
public GetTagDefaultResponse GetTagDefault ( GetTagDefaultRequest getRequest ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . TagDefault , this . Region ) } / { getRequest . TagDefaultId } " ) ; using ( var webResponse = this . RestClient . Get ( uri ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new GetTagDefaultResponse ( ) { TagDefault = JsonSerializer . Deserialize < TagDefault > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) , ETag = webResponse . Headers . Get ( " " ) } ; } }
Retrieves the specified tag default.
Retrieves the specified tag default .
None
getRequest
GetTagDefaultRequest
None