GetAppSettings

Get application specific settings in a given environment.

rpc GetAppSettings

user_api.v1.GetAppSettings

Get application specific settings in a given environment.

requests GetAppSettingsRequest

user_api.v1.GetAppSettingsRequest

resp, _ := userApiService.GetAppSettings(ctx, &v1.GetAppSettingsRequest{})
fmt.Println(resp)
const getappsettingsrequest = new GetAppSettingsRequest();

service.getAppSettings(getappsettingsrequest, (err, value:GetAppSettingsResponse|null) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
using System;
using Grpc.Core;
using UserApi.V1;

namespace main
{
  class Program
  {
    static void Main(string[] args)
    {
      Channel channel = new Channel("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io:443", ChannelCredentials.Insecure); 
      var client = new UserApiService.UserApiServiceClient(channel); 
      var headers = new Metadata();
      var getAppSettingsRequest = new GetAppSettingsRequest{};
      var reply = client.GetAppSettings(getAppSettingsRequest, headers);
      Console.WriteLine("Response: " + reply);
      channel.ShutdownAsync().Wait();
    }
  }
}
package demo;

import io.grpc.Channel;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import user_api.v1.User.GetAppSettingsRequest;
import user_api.v1.User.GetAppSettingsResponse;
import user_api.v1.UserApiServiceGrpc;

public class App {
  public static void main(String[] args) {
    ManagedChannel channel = ManagedChannelBuilder
      .forAddress("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
      .usePlaintext()
      .build();
    UserApiServiceGrpc.UserApiServiceBlockingStub blockStub =
        UserApiServiceGrpc.newBlockingStub(channel);
    
    GetAppSettingsRequest req_GetAppSettingsRequest =
        GetAppSettingsRequest.newBuilder()
          .build();
    GetAppSettingsResponse resp = blockStub.getAppSettings(req_GetAppSettingsRequest);
    System.out.println(resp);
    channel.shutdown();
  }
}
const getappsettingsrequest = new GetAppSettingsRequest();

service.getAppSettings(getappsettingsrequest, (err, value) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
extern crate grpc-sdks;
use tonic::transport::Channel;

use grpc-sdks::user_api::v1::user_api_service_client::UserApiServiceClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  let channel = Channel::from_static("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io")
    .connect()
    .await?;
  let mut client = UserApiServiceClient::new(channel); 

  let request = tonic::Request::new(
    ());
// sending request and waiting for response
  let response = client.get_app_settings(request).await?.into_inner();
  println!("RESPONSE={:?}", response);
  Ok(())
}
package app

import io.grpc.ManagedChannelBuilder
import user_api.v1.User.GetAppSettingsRequest
import user_api.v1.User.GetAppSettingsResponse
import user_api.v1.UserApiServiceGrpc

fun main() {
    val channel = ManagedChannelBuilder
            .forAddress("user-mgmt.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
            .usePlaintext()
            .build()
    var blockStub = UserApiServiceGrpc.newBlockingStub(channel)
    
    val req_GetAppSettingsRequest = GetAppSettingsRequest.newBuilder()
          .build()
    val resp = blockStub.getAppSettings(req_GetAppSettingsRequest)
    println(resp)
    channel.shutdown()
}


returns GetAppSettingsResponse

user_api.v1.GetAppSettingsResponse

FieldTypeDescription
app_settingsAppSettingsAppSettings object configured in the environment.
{
  "app_settings": {
    "authn_providers": [
      {
        "provider": 0,
        "enabled": true
      },
      {
        "provider": 1,
        "enabled": false
      }
    ]
  }
}